CriticalGHSA-f2jv-r9rf-7988CVE-2021-23369

Remote code execution in handlebars when compiling templates

Published 6 May 2021 · Updated 10 Sept 2026

Affected package

Affected
<4.7.7
Fixed in
4.7.7
Update to the fixed version for your release line, for example:npm install handlebars@4.7.7

Details

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.

Is GHSA-f2jv-r9rf-7988 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected handlebars, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.