CVE-2023-26122
JavaScript vulnerability analysis and mitigation

Overview

CVE-2023-26122 affects all versions of the safe-eval package, which is designed to be a safer version of eval(). The vulnerability was discovered and disclosed on March 26, 2023, and published on April 10, 2023. The vulnerability stems from improper input sanitization that allows for sandbox bypass through prototype pollution exploitation (Snyk, CVE).

Technical details

The vulnerability exists due to multiple vulnerable functions that can be exploited for sandbox bypass, including defineGetter, stack(), toLocaleString(), propertyIsEnumerable.call(), and valueOf(). The vulnerability allows attackers to escape the sandbox environment through prototype pollution techniques, which can lead to remote code execution capabilities. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (High severity) (Snyk).

Impact

The successful exploitation of this vulnerability can result in a complete compromise of the system's confidentiality, integrity, and availability. Attackers can achieve remote code execution (RCE), allowing them to execute arbitrary shell commands on the affected system. This represents a total loss of protection and could lead to full system compromise (Snyk).

Mitigation and workarounds

Currently, there is no fixed version available for the safe-eval package. Given the severity of the vulnerability and the lack of patches, it is recommended to discontinue the use of this package and seek alternative solutions that provide secure evaluation of expressions (Snyk).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management