CVE-2021-23594
JavaScript vulnerability analysis and mitigation

Overview

All versions of package realms-shim are vulnerable to Sandbox Bypass via a Prototype Pollution attack vector. The vulnerability was discovered and disclosed on December 6, 2021, and was assigned CVE-2021-23594. The package realms-shim is a shim implementation of the Realm API Proposal (NPM Package, Snyk Advisory).

Technical details

The vulnerability allows attackers to exploit Prototype Pollution to bypass sandbox restrictions. The issue received a CVSS v3.1 base score of 9.8 (CRITICAL) from Snyk and 10.0 from NVD, indicating maximum severity. The vulnerability is tracked as CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes) and CWE-265. The vulnerability stems from the ability to inject properties into existing JavaScript language construct prototypes, which can lead to sandbox bypass through prototype pollution (Snyk Advisory).

Impact

Successful exploitation of this vulnerability could allow an attacker to bypass sandbox restrictions through prototype pollution, potentially leading to remote code execution. The vulnerability affects the security properties of the application by allowing manipulation of object prototypes, which can result in either denial of service by triggering JavaScript exceptions or tampering with the application source code to force unintended code execution paths (Snyk Advisory).

Mitigation and workarounds

There is no fixed version available for realms-shim. The package has been deprecated with the message that TC39 has taken Realms in a new direction (ShadowRealm) and the security properties of the realms-shim have not been maintained. Users are advised to migrate away from this package (NPM Package).

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-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-65513HIGH7.5
  • JavaScriptJavaScript
  • mcp-fetch-server
NoNoDec 09, 2025
CVE-2025-67716MEDIUM5.7
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 11, 2025
CVE-2025-67490MEDIUM5.4
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 10, 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