Vulnerability Details : CVE-2021-32820
Potential exploit
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.
Vulnerability category: Information leak
Products affected by CVE-2021-32820
- cpe:2.3:a:express_handlebars_project:express_handlebars:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-32820
91.33%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 100 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-32820
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
8.6
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
3.9
|
4.0
|
NIST |
CWE ids for CVE-2021-32820
-
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-32820
-
https://github.com/express-handlebars/express-handlebars/blob/78c47a235c4ad7bc2674bddd8ec2721567ed8c72/README.md#danger-
express-handlebars/README.md at 78c47a235c4ad7bc2674bddd8ec2721567ed8c72 · express-handlebars/express-handlebars · GitHubThird Party Advisory
-
https://www.npmjs.com/package/express-handlebars
express-handlebars - npmThird Party Advisory
-
https://github.com/express-handlebars/express-handlebars/commit/78c47a235c4ad7bc2674bddd8ec2721567ed8c72
fix: add note about security · express-handlebars/express-handlebars@78c47a2 · GitHubPatch;Third Party Advisory
-
https://securitylab.github.com/advisories/GHSL-2021-018-express-handlebars/
GHSL-2021-018: File disclosure in Express Handlebars - CVE-2021-32820 | GitHub Security LabExploit;Third Party Advisory
-
https://github.com/express-handlebars/express-handlebars/pull/163
fix: use `context` property for template variables by UziTech · Pull Request #163 · express-handlebars/express-handlebars · GitHubExploit;Third Party Advisory
Jump to