CVE-2019-19919 — Prototype Pollution in handlebars — CVE Details
Prototype Pollution in handlebars
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (7.07%). Schedule for your next planned update.
Does your project use an affected handlebars version?
Paste your package-lock.json to check it for CVE-2019-19919 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Versions of handlebars prior to 3.0.8 or 4.3.0 are vulnerable to Prototype Pollution leading to Remote Code Execution. Templates may alter an Objects' __proto__ and __defineGetter__ properties, which may allow an attacker to execute arbitrary code through crafted payloads.
Recommendation
Upgrade to version 3.0.8, 4.3.0 or later.
Advisory Timeline
- First published December 26, 2019 (2527 days ago).
- Last revised September 10, 2026 — 2449 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install handlebars@4.3.0
npm install handlebars@3.0.8
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 2 ecosystems: npm (1), RubyGems (1).
| Package | Fixed In |
|---|---|
| handlebars npm · Affected: All versions | 4.3.0 |
| handlebars npm · Affected: All versions | 3.0.8 |
| bootstrap-wysihtml5-rails RubyGems · Affected: 0.3.3.5, 0.3.3.6, 0.3.3.7, 0.3.3.8 | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1321Prototype PollutionMITRE
- CWE-74
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-19919ADVISORY
- https://github.com/wycats/handlebars.js/issues/1558WEB
- https://github.com/handlebars-lang/handlebars.js/commit/156061eb7707575293613d7fdf90e2bdaac029eeWEB
- https://github.com/handlebars-lang/handlebars.js/commit/90ad8d97ad2933852fb83fcc054699dc99e094dbWEB
- https://github.com/wycats/handlebars.js/commit/2078c727c627f25d4a149962f05c1e069beb18bcWEB
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19919WEB
- https://github.com/Nerian/bootstrap-wysihtml5-rails/blob/master/vendor/assets/javascripts/bootstrap-wysihtml5/handlebars.runtime.min.jsWEB
- https://github.com/Nerian/bootstrap-wysihtml5-rails/tree/master/vendor/assets/javascripts/bootstrap-wysihtml5WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-wysihtml5-rails/CVE-2019-19919.ymlWEB
- https://github.com/wycats/handlebars.jsPACKAGE
- https://www.tenable.com/security/tns-2021-14WEB
Frequently Asked Questions
- What is CVE-2019-19919?
- Prototype Pollution in handlebars. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2019-19919?
- CVE-2019-19919 affects handlebars and bootstrap-wysihtml5-rails. It has a 7.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2019-19919 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 95% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2026-33937CRITICAL
Handlebars.js has JavaScript Injection via AST Type Confusion
- CVE-2026-76807CRITICAL
Todoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server
- CVE-2026-106446CRITICAL
Handlebars: JavaScript Injection via AST Type Confusion in compile (bypass of CVE-2026-33937)
- CVE-2026-114516CRITICAL
Etherpad: Pre-auth arbitrary file read
- CVE-2026-106445CRITICAL
Handlebars: JavaScript Injection via Own Property Check Bypass