Skip to content

Prototype Pollution in handlebars

Critical severity GitHub Reviewed Published Dec 26, 2019 to the GitHub Advisory Database • Updated Jan 29, 2023

Package

npm handlebars (npm)

Affected versions

< 4.3.0

Patched versions

4.3.0

Description

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.

References

Last updated Jan 29, 2023
Published to the GitHub Advisory Database Dec 26, 2019
Reviewed Dec 26, 2019
Published by the National Vulnerability Database Dec 20, 2019

Severity

Critical
9.8
/ 10

CVSS base metrics

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

CVE ID

CVE-2019-19919

GHSA ID

GHSA-w457-6q6x-cgp9

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.