Medium severity · published Aug 16, 2021
CVE-2021-32822
The npm hbs package is an Express view engine wrapper for Handlebars
5.3
CVSS
1.1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.1% · higher than 66% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
HB
Hbs · Hbs Project
All versions, or not specified · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-32822
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-32822
Exploit
https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/
More from Hbs
8.1
CVE-2026-16231
hbs vulnerable to XSS via registerAsyncHelper output-escaping bypass
