CVEvulnerability
CVE-2021-32822
5.3 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2021-08-16
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 4.0 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
- CVSS 3.1 ([email protected])
- 5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:P/I:N/A:N
- Weaknesses
- CWE-538, CWE-94
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 configurations
• hbs project hbs
Related
References
- https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/ Exploit, Third Party Advisory
- https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/ Exploit, Third Party Advisory