Skip to main content

CVE-2019-19919 — Prototype Pollution in handlebars — CVE Details

CRITICAL

Prototype Pollution in handlebars

Published December 26, 2019Updated September 10, 2026Source: OSV

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.

Check my package-lock.json

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
Update handlebars to 4.3.0 or later
npm install handlebars@4.3.0
npm
Update handlebars to 3.0.8 or later
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).

PackageFixed In
handlebars npm · Affected: All versions4.3.0
handlebars npm · Affected: All versions3.0.8
bootstrap-wysihtml5-rails RubyGems · Affected: 0.3.3.5, 0.3.3.6, 0.3.3.7, 0.3.3.8Range-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
7.07%
EPSS percentile: 95

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

GHSA-w457-6q6x-cgp9

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json