CVE-2021-23434
JavaScript vulnerability analysis and mitigation

Overview

A type confusion vulnerability (CVE-2021-23434) was discovered in object-path, a Node.js module used to access deep object properties using dot-separated paths. The vulnerability was disclosed on August 25, 2021, affecting versions prior to 0.11.6. This vulnerability could lead to a bypass of the previous CVE-2020-15256 fix when the path components used in the path parameter are arrays (NVD, Snyk).

Technical details

The vulnerability occurs because the === operator returns false when the type of the operands is different. Specifically, when path components are arrays, the condition currentPath === 'proto' returns false if currentPath is ['proto'], allowing for prototype pollution attacks. The vulnerability was discovered by Alessio Della Libera of Snyk Research Team (Snyk).

Impact

The vulnerability could allow an attacker to perform prototype pollution attacks, which could lead to property injection, denial of service, or in some cases, remote code execution. When exploited, attackers could manipulate JavaScript application object prototypes by injecting malicious values, potentially affecting all JavaScript objects through the prototype chain (Snyk).

Mitigation and workarounds

The vulnerability has been fixed in version 0.11.6 of object-path. Users are recommended to upgrade to this version or higher. Alternative mitigation strategies include freezing the prototype using Object.freeze(Object.prototype), requiring schema validation of JSON input, avoiding unsafe recursive merge functions, and considering the use of objects without prototypes or using Map instead of Object (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-2026-35442HIGH8.1
  • JavaScriptJavaScript
  • directus
NoYesApr 04, 2026
CVE-2026-35209HIGH7.5
  • JavaScriptJavaScript
  • defu
NoYesApr 04, 2026
GHSA-6q22-g298-grjhHIGH7.5
  • JavaScriptJavaScript
  • directus
NoYesApr 04, 2026
GHSA-mvv8-v4jj-g47jMEDIUM6.5
  • JavaScriptJavaScript
  • directus
NoYesApr 04, 2026
CVE-2026-35441MEDIUM6.5
  • JavaScriptJavaScript
  • directus
NoYesApr 04, 2026

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