Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2020-7713
JavaScript vulnerability analysis and mitigation

Overview

CVE-2020-7713 affects all versions of the package arr-flatten-unflatten, which contains a Prototype Pollution vulnerability. The vulnerability was disclosed on August 13, 2020, and published on September 1, 2020 (Snyk).

Technical details

The vulnerability allows Prototype Pollution via the constructor in the arr-flatten-unflatten package. The package, which provides a non-recursive method of flattening an array of arrays and unflattening the result, is susceptible to prototype manipulation through its unflatten function. The vulnerability has been assigned CWE-1321 and received a CVSS v3.1 score of 7.5 (High) from Snyk (Snyk).

Impact

When exploited, this vulnerability can lead to Denial of Service (DoS), potential Remote Code Execution (RCE), or Property Injection. In DoS scenarios, the attacker can pollute Object.prototype attributes causing application failures. For RCE, code execution is possible if the application evaluates and executes specific object attributes. Property Injection allows attackers to manipulate security-critical properties like privileges (Snyk).

Exploitability

A proof-of-concept exploit exists that demonstrates how the vulnerability can be triggered. The exploit involves using the unflatten function with a specially crafted object: const { unflatten } = require('arr-flatten-unflatten'); unflatten({'proto.polluted':true}); console.log(polluted); (Snyk).

Mitigation and workarounds

There is no fixed version available for arr-flatten-unflatten. Recommended mitigations include: freezing the prototype using Object.freeze(Object.prototype), implementing JSON input schema validation, avoiding unsafe recursive merge functions, using objects without prototypes (Object.create(null)), and considering Map instead of Object as a best practice (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-61560CRITICAL9.8
  • JavaScript logoJavaScript
  • @zereight/mcp-gitlab
NoYesSep 15, 2026
CVE-2026-61568CRITICAL9.6
  • JavaScript logoJavaScript
  • @zereight/mcp-gitlab
NoYesSep 15, 2026
CVE-2026-61559CRITICAL9.6
  • JavaScript logoJavaScript
  • @zereight/mcp-gitlab
NoYesSep 15, 2026
CVE-2026-63671HIGH8.1
  • JavaScript logoJavaScript
  • @nuxtjs/mdc
NoYesSep 16, 2026
CVE-2026-68904HIGH7
  • JavaScript logoJavaScript
  • node-opcua
NoYesSep 16, 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