GitHub Advisoryadvisory · npm

GHSA-33vh-7x8q-mg35 safe-eval vulnerable to Prototype Pollution

CRITICAL Published 2022-12-20 Modified 2025-04-16 Official page ↗
Aliases
CVE-2022-25904
Ecosystem
npm
Packages
safe-eval
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-1321
Reviewed
2022-12-20

Affected packages

• npm safe-eval: <= 0.4.1 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2022-25904 All versions of package safe-eval are vulnerable to Prototype Pollution which allows an attacker to add or modify properties of the… vulnerability

Weakness · CWE (1)

  • CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness

References