CVE-2021-32817: express-hbs - Path Traversal
- Cve: CVE-2021-32817
- Name: express-hbs - Path Traversal
- 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.
- Impact: Attackers can potentially access sensitive files on the server, leading to information disclosure.
- Remediation: Review and update to the latest version of express-hbs, and follow documentation notes to avoid exposing sensitive files.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure
- Requirement type: user_interaction
- Requirements: Attacker needs to control the layout parameter in the render API
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.8
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
- Epss score: 0.01268
- Epss percentile: 0.70373
- Assignee: [email protected]
- Published at: 2021-05-14T19:15:07Z
- Age in days: 2020
- Modified at: 2026-06-17T03:53:41Z
- Patch available: yes
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32817
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor |
| CWE-94 | Improper Control of Generation of Code |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/ | nvd | 2021-05-14 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e | Patch, Third Party Advisory |
| https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/ | Exploit, Patch, Third Party Advisory |
| https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability | Release Notes, Third Party Advisory |
| https://www.npmjs.com/package/express-hbs | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| express_handlebars_project:express_handlebars | <= 5.3.2 | no | nvd | /v1/products/express_handlebars_project/express_handlebars |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| tryghost/express-hbs | commit, package | yes | /v1/repositories/tryghost/express-hbs |
Index
- Repositories: 1
- Repositories high signal: 1
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-05-14
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts