CVE-2021-32822

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.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:hbs_project:hbs:-:*:*:*:*:node.js:*:*

History

02 Jul 2022, 18:23

Type Values Removed Values Added
CWE CWE-200 CWE-94

24 Aug 2021, 15:55

Type Values Removed Values Added
References (CONFIRM) https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/ - (CONFIRM) https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/ - Exploit, Third Party Advisory
CWE CWE-200
CPE cpe:2.3:a:hbs_project:hbs:-:*:*:*:*:node.js:*:*
CVSS v2 : unknown
v3 : unknown
v2 : 5.0
v3 : 5.3

16 Aug 2021, 19:16

Type Values Removed Values Added
New CVE

Information

Published : 2021-08-16 19:15

Updated : 2024-02-04 21:47


NVD link : CVE-2021-32822

Mitre link : CVE-2021-32822

CVE.ORG link : CVE-2021-32822


JSON object : View

Products Affected

hbs_project

  • hbs
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')

CWE-538

Insertion of Sensitive Information into Externally-Accessible File or Directory