CVE-2021-25949
JavaScript vulnerability analysis and mitigation

Overview

Prototype pollution vulnerability in 'set-getter' version 0.1.0 was discovered that allows an attacker to cause a denial of service and potentially lead to remote code execution. The vulnerability was disclosed on June 10, 2021, affecting the NPM module 'set-getter' (WhiteSource DB, NVD).

Technical details

The vulnerability exists in the setGetter() function which accepts obj, prop, and getter as arguments. The function lacks proper validation on the values passed into the prop argument, allowing attackers to supply malicious values that include the proto property. Due to the absence of validation before property assignment to check whether the assigned argument is the Object's own property, attackers can pollute the Object prototype. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (WhiteSource DB).

Impact

The successful exploitation of this vulnerability can lead to denial of service conditions and potentially remote code execution. When exploited, attackers can create non-existent properties or manipulate existing properties in the Object prototype, affecting all objects in the application (WhiteSource DB).

Exploitability

The vulnerability is exploitable by supplying malicious input to the setGetter() function. A proof of concept demonstrates that an attacker can pollute the Object prototype by setting a 'proto.polluted' property, which then affects all objects in the application (WhiteSource DB).

Mitigation and workarounds

Users should upgrade to version 0.1.1 of the set-getter package which contains the fix for this vulnerability (WhiteSource DB).

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-59160HIGH8.8
  • JavaScript logoJavaScript
  • @yeger/turbo-graph
NoYesSep 09, 2026
CVE-2026-59179HIGH8.3
  • JavaScript logoJavaScript
  • @openhop/server
NoYesSep 09, 2026
GHSA-x7m8-jrm8-hpvxHIGH8.1
  • JavaScript logoJavaScript
  • @eigenpal/docx-editor-core
NoYesSep 10, 2026
CVE-2026-59176HIGH7.8
  • JavaScript logoJavaScript
  • functype-mcp-server
NoYesSep 09, 2026
CVE-2026-59158HIGH7.5
  • JavaScript logoJavaScript
  • nuxt-ollama
NoYesSep 09, 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