CVE-2021-23450
JavaScript vulnerability analysis and mitigation

Overview

All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. The vulnerability was discovered and disclosed on July 30, 2021, and was assigned identifier CVE-2021-23450. This security issue affects the Dojo JavaScript toolkit, which is a foundation package for the Dojo 1 Toolkit (Snyk Report).

Technical details

The vulnerability is a Prototype Pollution issue that occurs through the setObject function. A proof of concept demonstrates that an attacker can pollute JavaScript object prototypes by creating an HTML file that uses dojo.setObject to set malicious values. The vulnerability allows injection of properties into existing JavaScript language construct prototypes, such as objects, which can lead to prototype chain pollution (Snyk Report).

Impact

When successfully exploited, this vulnerability can lead to either denial of service by triggering JavaScript exceptions or tampering with the application source code to force code path injection, potentially leading to remote code execution. The vulnerability affects multiple environments including application servers, web servers, and web browsers (Snyk Report).

Mitigation and workarounds

Several mitigation strategies are recommended: freeze the prototype using Object.freeze(Object.prototype), require schema validation of JSON input, avoid using unsafe recursive merge functions, consider using objects without prototypes (Object.create(null)), and use Map instead of Object as a best practice. For Debian 10 buster, this vulnerability has been fixed in version 1.14.2+dfsg1-1+deb10u3 (Debian Advisory).

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-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 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