All CVEs / Express Handlebars Project
CVE-2021-32817Express Handlebars Project Express Handlebars
Medium 6.8 No auth needed
Follow: this CVE · Express Handlebars Project · Express Handlebars Project Express Handlebars We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 3.1
- 6.8
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- May 14, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Express Handlebars.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | express-hbs |
≤ 2.4.0 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-rwxp-hwwf-653v). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| express_handlebars_project | express_handlebars | ≤ 5.3.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- github.com Patch Third Party Advisory
- securitylab.github.com Exploit Patch Third Party Advisory
- www.npmjs.com Product