CVE-2021-32820: express_handlebars_project express_handlebars
Vulnerability summary
CVE-2021-32820 is a high (CVSS 8.6) vulnerability in express_handlebars_project express_handlebars. EPSS estimates a 15.74% chance of exploitation in the next 30 days, higher than 96.8% of scored vulnerabilities. 2 public exploits are recorded.
Timeline
- 14-05-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versions- OSV · NpmEcosystem advisory · calculated8.6HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS trend
Probability
15.74%
Chance of exploitation in the next 30 days
Percentile
97%
Versus all other CVEs
30-day change
0.00 pp
From 15.74% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundGhsl 2021 018 Express Handlebars
Maturity: poc
Express Handlebars
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
Express-handlebars1 product
- express-handlebars≤ 5.3.2
Npm1 product
- express-handlebars< 5.3.1
3 vendors · 3 products
References
8 links- securitylab.github.com/advisories/GHSL-2021-018-express-handlebars/X Refsource CONFIRMExploitThird Party Advisory
- github.com/express-handlebars/express-handlebars/pull/163X Refsource MISCWEBExploitThird Party Advisory
- github.com/express-handlebars/express-handlebars/commit/78c47a235c4ad7bc2674bddd8ec2721567ed8c72X Refsource MISCWEBPatchThird Party Advisory