PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2021-25947: 
JavaScript vulnerability analysis and mitigation

Overview

A prototype pollution vulnerability was discovered in the 'nestie' package affecting versions 0.0.0 through 1.0.0. The vulnerability was disclosed on June 3, 2021, and assigned identifier CVE-2021-25947. The vulnerability affects the nestie() function in the NPM module, which fails to properly validate input parameters (WhiteSource DB).

Technical details

The vulnerability exists in the nestie() function which accepts 'input' and 'glue' as arguments. Due to lack of type checking before assigning values to properties, an attacker can supply malicious values that include the 'proto' property. The absence of validation to check whether the assigned argument is the Object's own property allows direct property assignment to new objects, thereby polluting the Object prototype. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 CRITICAL (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) (WhiteSource DB).

Impact

Successful exploitation of this vulnerability can allow attackers to cause denial of service conditions and potentially achieve remote code execution. When exploited, the vulnerability enables attackers to manipulate or create non-existent properties, which can affect the behavior of the application (WhiteSource DB).

Exploitability

The vulnerability can be exploited by passing specially crafted input to the nestie() function. A proof of concept demonstrates that an attacker can pollute the Object prototype by setting a 'polluted' property through the 'proto' object, which then affects all newly created objects in the application (WhiteSource DB).

Mitigation and workarounds

Users are advised to upgrade to version 1.0.1 which contains fixes for this vulnerability (WhiteSource DB).

Additional resources


Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-vjh5-4x84-xrqpMEDIUM6.3
  • JavaScript logoJavaScript
  • @nuxt/nitro-server
NoYesOct 22, 2026
CVE-2026-114606MEDIUM5.6
  • JavaScript logoJavaScript
  • draw.io
NoYesOct 22, 2026
GHSA-x562-297c-g43gMEDIUM5.4
  • JavaScript logoJavaScript
  • electron
NoYesOct 22, 2026
GHSA-2p8c-gr87-2676MEDIUM4.2
  • JavaScript logoJavaScript
  • electron
NoYesOct 22, 2026
GHSA-m5mm-p8h7-m29vLOWN/A
  • JavaScript logoJavaScript
  • serialize-javascript
NoYesOct 22, 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