Vulnerability 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 Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Hbs Project | Hbs | - |
Related Weaknesses (CWE)
References
- https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/ExploitThird Party Advisory
- https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/ExploitThird Party Advisory
FAQ
What is CVE-2021-32822?
CVE-2021-32822 is a vulnerability with a CVSS score of 4.0 (MEDIUM). 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 vulner...
How severe is CVE-2021-32822?
CVE-2021-32822 has been rated MEDIUM with a CVSS base score of 4.0/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-32822?
Check the references section above for vendor advisories and patch information. Affected products include: Hbs Project Hbs.