CVE-2021-23369Handlebarsjs Handlebars
Critical 9.8 No auth needed
Follow: this CVE · Handlebarsjs · Handlebarsjs Handlebars We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 3.1
- 9.8
- EPSS
- 7.0% probability of exploitation in 30 days · percentile 95
- Auth required
- No
- Published
- Apr 12, 2021
- Updated
- Oct 8, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
The package handlebars before 4.7.7 are vulnerable to Remote Code Execution (RCE) when selecting certain compiling options to compile templates coming from an untrusted source.
What to do
- Apply the vendor's security update for Handlebars.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.webjars.bowergithub.wycats:handlebars.js |
< 4.7.7 |
4.7.7 |
— |
| Maven | org.webjars.npm:handlebars |
< 4.7.7 |
4.7.7 |
— |
| Maven | org.webjars:handlebars |
< 4.7.7 |
4.7.7 |
— |
| npm | handlebars |
< 4.7.7 |
4.7.7 |
npm install handlebars@4.7.7 |
Per OSV / GitHub Advisories (GHSA-f2jv-r9rf-7988). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| handlebarsjs | handlebars | < 4.7.7 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- security.netapp.com Third Party Advisory
- snyk.io Exploit Third Party Advisory
- snyk.io Exploit Third Party Advisory
- snyk.io Exploit Third Party Advisory
- snyk.io Exploit Third Party Advisory