CVE-2023-26135
JavaScript vulnerability analysis and mitigation

Overview

All versions of the package flatnest are vulnerable to Prototype Pollution via the nest() function in the flatnest/nest.js file. The vulnerability was discovered on December 29, 2022, and was publicly disclosed on June 29, 2023. This security issue affects all versions of the flatnest package, which is a JavaScript library used for flattening and nesting JavaScript objects (Snyk Advisory).

Technical details

The vulnerability is classified as CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes) and has been assigned CVE-2023-26135. The CVSS v3.1 scores vary between sources, with NVD rating it as 9.8 CRITICAL (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and Snyk rating it as 7.3 HIGH (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L). The vulnerability exists in the nest() function within the flatnest/nest.js file, where improper input validation allows for prototype pollution (NVD).

Impact

The vulnerability can lead to Prototype Pollution, which allows an attacker to add or modify properties of the Object.prototype. This can result in several types of attacks including Denial of Service (DoS), potential Remote Code Execution, and Property Injection. In DoS scenarios, the attacker can pollute Object.prototype attributes to cause application failures. For Property Injection, attackers might be able to manipulate security-related properties like privileges or tokens (Snyk Advisory).

Mitigation and workarounds

A fix has been pushed to the master branch of the project but has not yet been published as a new version. As general mitigation strategies, it is recommended to freeze the prototype using Object.freeze(Object.prototype), implement JSON input schema validation, avoid unsafe recursive merge functions, and consider using objects without prototypes (Object.create(null)) or using Map instead of Object (Snyk 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-55182CRITICAL10
  • JavaScriptJavaScript
  • react
NoYesDec 03, 2025
CVE-2025-66401CRITICAL9.8
  • JavaScriptJavaScript
  • mcp-watch
NoNoDec 01, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66405MEDIUM6.9
  • JavaScriptJavaScript
  • @portkey-ai/gateway
NoYesDec 01, 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