# CVE-2021-32817: File disclosure in express-hbs

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/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): 1.27%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-05-14T18:15:14.000Z
- Modified: 2026-09-08T08:47:51.934Z
- Also known as: GHSA-rwxp-hwwf-653v, BIT-HANDLEBARS-2021-32817
- Weaknesses: CWE-94, CWE-200
- Assigned by: GitHub_M

## Description

express-hbs is an Express handlebars template engine. express-hbs 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 .hbs appended to them. For complete details refer to the referenced GHSL-2021-019 report. Notes in documentation have been added to help users of express-hbs avoid this potential information exposure vulnerability.

(As written by CVE List.)

## Affected

- TryGhost express-hbs: < 2.4.0
- express-hbs (npm): up to 2.4.0
- express_handlebars_project express_handlebars: up to 5.3.2
- handlebars (Bitnami): before 5.3.3

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/> (exploit, advisory, patch, third-party-advisory)
- <https://www.npmjs.com/package/express-hbs> (product, web)
- <https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability> (advisory, release-notes, third-party-advisory, web)
- <https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e> (advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32817> (advisory, web)
- <https://github.com/TryGhost/express-hbs> (package)
- <https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs> (advisory)

## Sources

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

---

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