# CVE-2021-32820: File disclosure in Express Handlebars

- Severity: High 8.6 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 17.5%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-05-14T18:25:14.000Z
- Modified: 2026-09-08T08:47:51.677Z
- Also known as: GHSA-fr76-2wp8-fp92, BIT-HANDLEBARS-2021-32820
- Weaknesses: CWE-94, CWE-200
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- express-handlebars express-handlebars: <= 5.3.2
- express-handlebars (npm): before 5.3.1
- express_handlebars_project express_handlebars: up to 5.3.2
- handlebars (Bitnami): before 5.3.3

## Every score

- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://securitylab.github.com/advisories/GHSL-2021-018-express-handlebars/> (exploit, advisory, third-party-advisory)
- <https://github.com/express-handlebars/express-handlebars/pull/163> (exploit, advisory, third-party-advisory, web)
- <https://www.npmjs.com/package/express-handlebars> (advisory, third-party-advisory, web)
- <https://github.com/express-handlebars/express-handlebars/commit/78c47a235c4ad7bc2674bddd8ec2721567ed8c72> (advisory, patch, third-party-advisory, web)
- <https://github.com/express-handlebars/express-handlebars/blob/78c47a235c4ad7bc2674bddd8ec2721567ed8c72/README.md#danger-> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32820> (advisory, web)
- <https://github.com/express-handlebars/express-handlebars#danger-> (web)
- <https://securitylab.github.com/advisories/GHSL-2021-018-express-handlebars> (advisory)

## Sources

- CVE List: [CVE-2021-32820](https://www.cve.org/CVERecord?id=CVE-2021-32820), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-fr76-2wp8-fp92](https://github.com/advisories/GHSA-fr76-2wp8-fp92), CC-BY-4.0, modified 2023-12-06
- NVD: [CVE-2021-32820](https://nvd.nist.gov/vuln/detail/CVE-2021-32820), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-HANDLEBARS-2021-32820](https://osv.dev/vulnerability/BIT-HANDLEBARS-2021-32820), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-32820 · Whole record: https://cve.day/CVE-2021-32820.json · Rebuilt by cve.day 2026-11-25T22:58:01.350Z
