Vulnerability Details : CVE-2021-32817
Potential exploit
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.
Vulnerability category: Information leak
Products affected by CVE-2021-32817
- cpe:2.3:a:express_handlebars_project:express_handlebars:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-32817
0.29%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 69 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-32817
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.3
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:N/A:N |
8.6
|
2.9
|
NIST | |
6.8
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N |
2.2
|
4.0
|
NIST | |
5.4
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N |
2.2
|
2.7
|
GitHub, Inc. |
CWE ids for CVE-2021-32817
-
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.Assigned by: nvd@nist.gov (Primary)
-
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2021-32817
-
https://github.com/TryGhost/express-hbs/commit/ff6fad6e357699412d4e916273314e5e7af1500e
🔒 Added notes on a potential security vulnerability · TryGhost/express-hbs@ff6fad6 · GitHubPatch;Third Party Advisory
-
https://securitylab.github.com/advisories/GHSL-2021-019-express-hbs/
GHSL-2021-019: File disclosure in express-hbs - CVE-2021-32817 | GitHub Security LabExploit;Patch;Third Party Advisory
-
https://www.npmjs.com/package/express-hbs
express-hbs - npmProduct
-
https://github.com/TryGhost/express-hbs#%EF%B8%8F-this-creates-a-potential-security-vulnerability
GitHub - TryGhost/express-hbs: Express handlebars template engine with inheritance, partials, i18n and async helpers.Release Notes;Third Party Advisory
Jump to