Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. safe-eval
  4. ›
  5. CVE-2023-26122

CVE-2023-26122: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

April 11, 2023 (updated November 9, 2023)

All versions of the package safe-eval is vulnerable to Sandbox Bypass due to improper input sanitization. The vulnerability is derived from prototype pollution exploitation. Exploiting this vulnerability might result in remote code execution (“RCE”). Vulnerable functions: defineGetter, stack(), toLocaleString(), propertyIsEnumerable.call(), valueOf().

References

  • gist.github.com/seongil-wi/2db6cb884e10137a93132b7f74879cce
  • github.com/advisories/GHSA-79xf-67r4-q2jj
  • github.com/hacksparrow/safe-eval/issues/27
  • github.com/hacksparrow/safe-eval/issues/31
  • github.com/hacksparrow/safe-eval/issues/32
  • github.com/hacksparrow/safe-eval/issues/33
  • github.com/hacksparrow/safe-eval/issues/34
  • github.com/hacksparrow/safe-eval/issues/35
  • nvd.nist.gov/vuln/detail/CVE-2023-26122
  • security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3373064

Code Behaviors & Features

Detect and mitigate CVE-2023-26122 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.4.2

Solution

Unfortunately, there is no solution available yet.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/safe-eval/CVE-2023-26122.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:44 +0000.