Medium severity4.0NVD Advisory· Published Aug 16, 2021· Updated Jun 17, 2026
CVE-2021-32822
CVE-2021-32822
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
hbsnpm | <= 4.1.2 | — |
Affected products
3- cpe:2.3:a:hbs_project:hbs:-:*:*:*:*:node.js:*:*
- pillarjs/hbsv5Range: all
Patches
Vulnerability mechanics
References
4- securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/nvdExploitThird Party Advisory
- github.com/advisories/GHSA-7f5c-rpf4-86p8ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-32822ghsaADVISORY
- securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbsghsaADVISORY
News mentions
0No linked articles in our index yet.