Security advisory
Express-handlebars is a Handlebars view engine for Express. Express-handlebars mixes pure template data with engine configuration options through the Express render API. More specifically, the layout parameter may trigger file disclosure vulnerabilities in downstream applications. This potential vulnerability is somewhat restricted in that only files with existing extentions (i.e. file.extension) can be included, files that lack an extension will have .handlebars appended to them. For complete details refer to the referenced GHSL-2021-018 report. Notes in documentation have been added to help users avoid this potential information exposure vulnerability.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-32820
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:47 UTC · Revision 1
Source evidence
Express-handlebars is a Handlebars view engine for Express. Express-handlebars mixes pure template data with engine configuration options through the Express render API. More specifically, the layout parameter may trigger file disclosure vulnerabilities in downstream applications. This potential vulnerability is somewhat restricted in that only files with existing extentions (i.e. file.extension) can be included, files that lack an extension will have .handlebars appended to them. For complete details refer to the referenced GHSL-2021-018 report. Notes in documentation have been added to help users avoid this potential information exposure vulnerability.
osv:CVE-2021-32820
Complete source record
{
"id": "e391293b4670942ed51b895c2639524b2004ae4ca39729724f51698a97259ca9",
"url": "https://osv.dev/vulnerability/CVE-2021-32820",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-32820",
"summary": "Express-handlebars is a Handlebars view engine for Express. Express-handlebars mixes pure template data with engine configuration options through the Express render API. More specifically, the layout parameter may trigger file disclosure vulnerabilities in downstream applications. This potential vulnerability is somewhat restricted in that only files with existing extentions (i.e. file.extension) can be included, files that lack an extension will have .handlebars appended to them. For complete details refer to the referenced GHSL-2021-018 report. Notes in documentation have been added to help users avoid this potential information exposure vulnerability.",
"evidence": "osv:CVE-2021-32820",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-32820",
"aliases": [
"BIT-handlebars-2021-32820",
"CVE-2021-32820",
"GHSA-fr76-2wp8-fp92"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/express-handlebars/express-handlebars",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "d4d382991c71150b356db5b8447c7a3851fdb0b1"
},
{
"fixed": "78c47a235c4ad7bc2674bddd8ec2721567ed8c72"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:express_handlebars_project:express_handlebars:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.3.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "78c47a235c4ad7bc2674bddd8ec2721567ed8c72"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v5.3.0",
"v5.2.1",
"v5.2.0",
"v5.1.0",
"v5.0.0",
"v4.0.6",
"v4.0.5",
"v4.0.4",
"v4.0.3",
"v4.0.2",
"v4.0.1",
"v4.0.0",
"v3.1.0",
"v3.0.2",
"v3.0.1",
"v3.0.0",
"v2.0.1",
"v2.0.0",
"v1.2.2",
"v1.2.1",
"v1.2.0",
"v1.1.0",
"v1.0.3",
"v1.0.2",
"v1.0.1",
"v1.0.0",
"v1.0.0-rc-2",
"v0.5.1",
"v1.0.0-rc-1",
"v0.5.0",
"v0.4.1",
"v0.4.0",
"v0.3.3",
"v0.3.2",
"v0.3.1",
"v0.3.0",
"v0.2.3",
"v0.2.2",
"v0.2.1",
"v0.2.0",
"v0.1.2",
"v0.1.1",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32820.json"
}
}
],
"modified": "2026-10-20T10:54:43.234592771Z",
"provider": "osv",
"references": [
"https://github.com/express-handlebars/express-handlebars/blob/78c47a235c4ad7bc2674bddd8ec2721567ed8c72/README.md#danger-",
"https://www.npmjs.com/package/express-handlebars",
"https://github.com/express-handlebars/express-handlebars/commit/78c47a235c4ad7bc2674bddd8ec2721567ed8c72",
"https://github.com/express-handlebars/express-handlebars/pull/163",
"https://securitylab.github.com/advisories/GHSL-2021-018-express-handlebars/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-32820",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385990,
"published_at": "2021-05-14T19:15:07.96+00:00"
}