CVE-2021-32822
Last modified
CVE-2021-32822 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 1.18% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Hbs Project | Hbs | All versions |
References
- https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/Exploit, Third Party Advisory
- https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-32822?
How severe is CVE-2021-32822?
How do I fix CVE-2021-32822?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-32817express-hbs is an Express handlebars template engine. expres…6.8
- CVE-2021-32818haml-coffee is a JavaScript templating solution. haml-coffee…5.4
- CVE-2021-32819Squirrelly is a template engine implemented in JavaScript th…8.8
- CVE-2021-3282HashiCorp Vault Enterprise 1.6.0 & 1.6.1 allowed the `remove…7.5
- CVE-2021-32820Express-handlebars is a Handlebars view engine for Express. …8.6
- CVE-2021-32821MooTools is a collection of JavaScript utilities for JavaScr…7.5
- CVE-2021-32823In the bindata RubyGem before version 2.4.10 there is a pote…3.7
- CVE-2021-32824Apache Dubbo is a java based, open source RPC framework. Ver…9.8
- CVE-2021-32825bblfshd is an open source self-hosted server for source code…9.1
- CVE-2021-32826Proxyee-Down is open source proxy software. An attacker bein…8.1
- CVE-2021-32827MockServer is open source software which enables easy mockin…9.6
- CVE-2021-32828The Nuxeo Platform is an open source content management plat…6.1
Are you affected by CVE-2021-32822?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
