Skip to content

safe-eval vulnerable to Prototype Pollution

Critical severity GitHub Reviewed Published Dec 20, 2022 to the GitHub Advisory Database • Updated Feb 2, 2023

Package

npm safe-eval (npm)

Affected versions

<= 0.4.1

Patched versions

None

Description

All versions of package safe-eval are vulnerable to Prototype Pollution which allows an attacker to add or modify properties of the Object.prototype.Consolidate when using the function safeEval. This is because the function uses vm variable, leading an attacker to modify properties of the Object.prototype.

References

Published by the National Vulnerability Database Dec 20, 2022
Published to the GitHub Advisory Database Dec 20, 2022
Reviewed Dec 20, 2022
Last updated Feb 2, 2023

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

Weaknesses

CVE ID

CVE-2022-25904

GHSA ID

GHSA-33vh-7x8q-mg35

Source code

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