Description
Versions of handlebars prior to 4.3.0 are vulnerable to Prototype Pollution leading to Remote Code Execution. Templates may alter an Object's __proto__ and __defineGetter__ properties, which may allow an attacker to execute arbitrary code through crafted payloads.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-handlebars | 3:4.5.3-1 | — |
| Debian 13 | node-handlebars | 3:4.5.3-1 | — |
| Debian 12 | node-handlebars | 3:4.5.3-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | node-handlebars | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
fazilbaig1/CVE-2019-19919 ★ 6 · Oct 19, 2024
Handlebars Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Vulnerability
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | handlebars | >= 4.0.0, < 4.3.0 | 4.3.0 | GHSA-w457-6q6x-cgp9 |
| npm | handlebars | < 3.0.8 | 3.0.8 | GHSA-w457-6q6x-cgp9 |
| RubyGems | bootstrap-wysihtml5-rails | >= 0.3.3.5, <= 0.3.3.8 | — | GHSA-w457-6q6x-cgp9 |