CVE-2021-32822
MEDIUM 5.3CVSS 3.1hbs: Insertion of Sensitive Information into Externally-Accessible File or Directory and Exposure of Sensitive Information to an Unauthorized Actor
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
- 16 Aug 2021
- Last modified
- 27 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-200CWE-538CWE-94
- Also known as
- GHSA-7f5c-rpf4-86p8
- Sources
- NVDJSONOSV GHSA-7f5c-rpf4-86p8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hbs_project | hbscpe:2.3:a:hbs_project:hbs:-:*:*:*:*:node.js:*:* |
(no version) | |
| OSV | npm | hbs | <= 4.4.0 |
References
- https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/ · Exploit, Third Party Advisory, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-32822 · ADVISORY
- https://github.com/pillarjs/hbs · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 16 Aug 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 2 Sep 2021)