Vulnerability · Published Aug 16, 2021 · Assigned by GitHub_M
CVE-2021-32822File disclosure in hbs
Medium 4.0
In plain English
A medium-severity security flaw in hbs from pillarjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities).
Official description
The npm hbs package is an Express view engine wrapper for Handlebars. Depending on usage, users of hbs may be vulnerable to a file disclosure vulnerability. There is currently no patch for this vulnerability. hbs mixes pure template data with engine configuration options through the Express render API. By overwriting internal configuration options a file disclosure vulnerability may be triggered in downstream applications. For an example PoC see the referenced GHSL-2021-020.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | hbs | no fix listed | GHSA-7f5c-rpf4-86p8 |
Affected products (as reported)
Weakness: CWE-538 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
References
- https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/ x_refsource_CONFIRM