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.

Published · last modified .

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.

EPSS exploit prediction

EPSS: 0.012 (66.4th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 66th percentile — 66.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-32822: held from 0.012 to 0.012.

EPSS over last 30 days · oldest: 0.012 · newest: 0.012 · change: 0.000

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.