CVE-2021-32820 in the critical feed json
File disclosure in Express Handlebars
published 2021-05-14 5 y ago modified 2026-09-08 2 mo ago also BIT-handlebars-2021-32820 , EUVD-2022-0992 , GHSA-fr76-2wp8-fp92
- cvss
- 8.6
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 15.7%
- EPSS 15.7% chance of exploitation in 30 days, percentile 96%
- public exploits
- 0
- none known, plus a Nuclei check
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.
Patch / fix
- npm express-handlebars 5.3.1
- bitnami handlebars 5.3.3
Exploit prediction
15.74% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Express-handlebars - Local File Inclusion nuclei detection template
- github.com https://github.com/express-handlebars/express-handlebars/pull/163 referenced PoC, tagged "exploit" by a source, unverified
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2021-018-express-handlebars/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| OSV | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | express-handlebars | <5.3.1 |
5.3.1 |
| bitnami | handlebars | <5.3.3 |
5.3.3 |
Affected products
- express-handlebars express-handlebars
Classification
References
-
github.com
/express-handlebars/express-handlebars/pull/163
web, exploit, third-party-advisory, advisory
-
github.com
/express-handlebars/express-handlebars/commit/78c47a235c4ad7bc2674bddd8ec2721567ed8c72
web, patch, third-party-advisory, advisory
-
securitylab.github.com
/advisories/GHSL-2021-018-express-handlebars/
exploit, third-party-advisory, advisory
-
npmjs.com
/package/express-handlebars
web, third-party-advisory, advisory
-
github.com
/express-handlebars/express-handlebars/blob/78c47a235c4ad7bc2674bddd8ec2721567ed8c72/README.md#danger-
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-32820
advisory, web
-
github.com
/express-handlebars/express-handlebars#danger-
web
-
securitylab.github.com
/advisories/GHSL-2021-018-express-handlebars
advisory
Sources
- CVE List CVE-2021-32820
- GitHub Advisory GHSA-fr76-2wp8-fp92
- NVD CVE-2021-32820
- OSV BIT-handlebars-2021-32820
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.