CVE-2021-32817: express_handlebars_project express_handlebars
Vulnerability summary
CVE-2021-32817 is a medium (CVSS 6.8) vulnerability in express_handlebars_project express_handlebars. EPSS estimates a 1.27% chance of exploitation in the next 30 days, higher than 69.5% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 14-05-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA5.4MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:NDiffers
- OSV · NpmEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
1.27%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
0.00 pp
From 1.27% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundGhsl 2021 019 Express Hbs
Maturity: poc
Weaknesses
CWE · root cause- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-94Improper Control of Generation of Code ('Code Injection')The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Affected systems
Express_handlebars_project1 product
- express_handlebars≤ 5.3.2
Npm1 product
- express-hbs≤ 2.4.0
Tryghost1 product
- express-hbs< 2.4.0
3 vendors · 3 products
References
7 links- securitylab.github.com/advisories/GHSL-2021-019-express-hbs/X Refsource CONFIRMExploitPatchThird Party Advisory
- github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500eX Refsource MISCWEBPatchThird Party Advisory