Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2019-19919 EUVD-2019-0803GHSA-w457-6q6x-cgp9

Prototype Pollution in handlebars

Published Dec 20, 2019 · Updated Aug 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

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

EcosystemPackageAffectedFixedRecord
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

References