Security mailing lists by PureSourceCode

CVE-2022-25904

CRITICAL 9.8CVSS 3.1

safe-eval vulnerable to Prototype Pollution

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.

Published
20 Dec 2022
Last modified
17 Jun 2026
Assigned by
report@snyk.io
NVD status
Modified
Weakness
CWE-1321
Also known as
GHSA-33vh-7x8q-mg35
Sources
NVDJSONOSV GHSA-33vh-7x8q-mg35JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD report@snyk.io (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD safe-eval_project safe-eval
cpe:2.3:a:safe-eval_project:safe-eval:*:*:*:*:*:node.js:*:*
<= 0.4.1
OSV npm safe-eval <= 0.4.1

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 20 Dec 2022)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 20 Dec 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.