RCE in Hbs Project

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.

EPSS: 0.012 (64.4th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 4.0 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-32822?
CVE-2021-32822 is a medium-severity vulnerability in Hbs Project, classified under Insertion of Sensitive Information into Externally-Accessible File or Directory. CVSS score: 4.0/10. Published 2021-08-16.
How severe is CVE-2021-32822?
Medium severity. CVSS v3 base score is 4.0 out of 10.
Is CVE-2021-32822 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.