CVE-2019-19919: Critical severity Handlebars.js Project Handlebars.js Node.js vulnerability

Published Sep 24, 2019
·
Updated

A flaw was found in nodejs-handlebars, where it is vulnerable to Prototype Pollution leading to Remote Code Execution. Templates may alter an Object's proto and defineGetter properties, which allows an attacker to execute arbitrary code through crafted payloads. The highest threat from this vulnerability is to confidentiality and integrity.

Other sources

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.

— GitHub

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.

Affected Software

49 affected componentsFixes available
npm/handlebars<3.0.8
3.0.8
npm/handlebars>=4.0.0<4.3.0
4.3.0
rubygems/bootstrap-wysihtml5-rails>=0.3.3.5<=0.3.3.8
Handlebars.js Project Handlebars.js Node.js=1.0.6
Handlebars.js Project Handlebars.js Node.js=1.0.7
Handlebars.js Project Handlebars.js Node.js=1.0.8
Handlebars.js Project Handlebars.js Node.js=1.0.9
Handlebars.js Project Handlebars.js Node.js=1.0.10
Handlebars.js Project Handlebars.js Node.js=1.0.11
Handlebars.js Project Handlebars.js Node.js=1.0.12
Handlebars.js Project Handlebars.js Node.js=1.1.0
Handlebars.js Project Handlebars.js Node.js=1.1.1
Handlebars.js Project Handlebars.js Node.js=1.1.2
Handlebars.js Project Handlebars.js Node.js=1.2.0
Handlebars.js Project Handlebars.js Node.js=1.2.1
Handlebars.js Project Handlebars.js Node.js=1.3.0
Handlebars.js Project Handlebars.js Node.js=2.0.0
Handlebars.js Project Handlebars.js Node.js=3.0.0
Handlebars.js Project Handlebars.js Node.js=3.0.1
Handlebars.js Project Handlebars.js Node.js=3.0.2
Handlebars.js Project Handlebars.js Node.js=3.0.3
Handlebars.js Project Handlebars.js Node.js=3.0.4
Handlebars.js Project Handlebars.js Node.js=3.0.5
Handlebars.js Project Handlebars.js Node.js=3.0.6
Handlebars.js Project Handlebars.js Node.js=3.0.7
Handlebars.js Project Handlebars.js Node.js=4.0.0
Handlebars.js Project Handlebars.js Node.js=4.0.1
Handlebars.js Project Handlebars.js Node.js=4.0.2
Handlebars.js Project Handlebars.js Node.js=4.0.3
Handlebars.js Project Handlebars.js Node.js=4.0.4
Handlebars.js Project Handlebars.js Node.js=4.0.5
Handlebars.js Project Handlebars.js Node.js=4.0.6
Handlebars.js Project Handlebars.js Node.js=4.0.7
Handlebars.js Project Handlebars.js Node.js=4.0.8
Handlebars.js Project Handlebars.js Node.js=4.0.9
Handlebars.js Project Handlebars.js Node.js=4.0.10
Handlebars.js Project Handlebars.js Node.js=4.0.11
Handlebars.js Project Handlebars.js Node.js=4.0.12
Handlebars.js Project Handlebars.js Node.js=4.0.13
Handlebars.js Project Handlebars.js Node.js=4.0.14
Handlebars.js Project Handlebars.js Node.js=4.1.0
Handlebars.js Project Handlebars.js Node.js=4.1.1
Handlebars.js Project Handlebars.js Node.js=4.1.2
Handlebars.js Project Handlebars.js Node.js=4.2.0
Handlebars.js Project Handlebars.js Node.js=4.2.1
Handlebars.js Project Handlebars.js Node.js=4.2.2
Tenable Tenable.Sc<5.19.0
redhat/nodejs-handlebars<4.3.0
4.3.0
debian/node-handlebars
3:4.1.0-1+deb10u13:4.5.3-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/handlebars to a version that resolves this vulnerability.

    Fixed in 3.0.8
  2. Upgrade

    Upgrade npm/handlebars to a version that resolves this vulnerability.

    Fixed in 4.3.0
  3. Upgrade

    Upgrade redhat/nodejs-handlebars to a version that resolves this vulnerability.

    Fixed in 4.3.0
  4. Upgrade

    Upgrade debian/node-handlebars to a version that resolves this vulnerability.

    Fixed in 3:4.1.0-1+deb10u1Fixed in 3:4.5.3-1

Event History

Sep 24, 2019
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeakness
Dec 20, 2019
CVE Published
via MITRE·10:50 PM
Data Sourced
via MITRE·10:50 PM
Description
Dec 26, 2019
Advisory Published
05:58 PM
Jun 3, 2022
Data Sourced
06:48 PM
Affected Software
Mar 20, 2023
Data Sourced
via Red Hat·01:31 PM
DescriptionSeverityAffected Software
Nov 27, 2023
Advisory Published
09:35 PM
Nov 21, 2024
Data Sourced
via NVD·04:35 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·04:35 AM
RemedyAffected Software
Feb 12, 2025
Data Sourced
via GitHub·05:08 AM
DescriptionSeverityWeaknessAffected Software
Jun 17, 2026
Updated
via NVD·02:27 AM
Affected Software
Nov 14, 2026
Data Sourced
via Microsoft·04:47 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is CVE-2019-19919?

CVE-2019-19919 is a vulnerability in handlebars prior to version 4.3.0 that allows for Prototype Pollution leading to Remote Code Execution.

2

How severe is CVE-2019-19919?

CVE-2019-19919 is rated as critical with a severity score of 9.8 out of 10.

3

Which software versions are affected by CVE-2019-19919?

Versions 1.0.6 to 1.3.0 and 2.0.0 to 4.2.2 of Handlebars.js Project Handlebars.js, as well as versions of nodejs-handlebars prior to 4.3.0 are affected.

4

How can I fix CVE-2019-19919?

To fix CVE-2019-19919, update to version 4.3.0 of nodejs-handlebars or ensure you are using a non-vulnerable version of Handlebars.js Project Handlebars.js.

5

Where can I find more information about CVE-2019-19919?

You can find more information about CVE-2019-19919 in the following references: [Link 1](https://www.npmjs.com/advisories/1164), [Link 2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1789961), [Link 3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1789962).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203