CVE-2022-25354
JavaScript vulnerability analysis and mitigation

Overview

The package set-in before version 2.0.3 is vulnerable to Prototype Pollution via the setIn method. This vulnerability allows an attacker to merge object prototypes into it, potentially leading to security issues. This vulnerability (CVE-2022-25354) was discovered on March 17, 2022, and derives from an incomplete fix of CVE-2020-28273 (NVD, Snyk).

Technical details

The vulnerability exists in the setIn method implementation, where improper input sanitization allows manipulation of object prototypes. The vulnerability has a CVSS v3.1 base score of 9.8 (CRITICAL) according to NVD, and 8.6 (HIGH) according to Snyk. The vulnerability is tracked as CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes) (NVD).

Impact

Successful exploitation of this vulnerability could allow an attacker to modify properties within the global prototype chain. This can lead to denial of service (DoS) at minimum, and potentially escalate to other injection-based attacks. If the polluted property propagates to sensitive Node.js APIs (e.g., exec, eval), it could enable arbitrary command execution within the application's context (Snyk).

Mitigation and workarounds

The vulnerability has been patched in version 2.0.3. Users should upgrade to this version or higher to address the security issue. The fix involves improved validation of path arguments to prevent prototype pollution attacks (GitHub Patch).

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-22610HIGH8.5
  • JavaScriptJavaScript
  • angular.js
NoYesJan 10, 2026
CVE-2026-22595HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22594HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22596MEDIUM6.7
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22597LOW2
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 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