CVE-2020-36632
JavaScript vulnerability analysis and mitigation

Overview

A critical vulnerability was discovered in hughsk flat versions up to 5.0.0, affecting the unflatten function in the index.js file. The vulnerability was disclosed on December 25, 2022 and tracked as CVE-2020-36632 (NVD, FortiGuard).

Technical details

The vulnerability is a prototype pollution issue in the unflatten function that allows attackers to inject malicious properties into Object.prototype. The vulnerability occurs due to improper input validation when processing nested object properties (GitHub Issue). An attacker can exploit this by passing specially crafted input containing 'proto' properties to the unflatten function.

Impact

Successful exploitation of this vulnerability could allow attackers to modify properties within the global prototype chain, potentially leading to denial of service (DoS) at minimum. The vulnerability could also enable injection-based attacks depending on how the library is integrated within applications (GitHub PR).

Exploitability

The vulnerability can be exploited by calling the unflatten function with malicious input. A proof of concept demonstrates exploitation by using: unflatten({'proto.polluted': true}), which results in polluted being set to true globally (GitHub Issue).

Mitigation and workarounds

The vulnerability was patched in version 5.0.1 of the flat package. The fix prevents prototype pollution by checking for 'proto' keys and returning early when encountered (GitHub Commit). Users are strongly recommended to upgrade to version 5.0.1 or later.

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-77415CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77414CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77413CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-63421HIGH7.5
  • JavaScript logoJavaScript
  • @keystone-6/core
NoYesAug 21, 2026
CVE-2026-53509MEDIUM5.7
  • JavaScript logoJavaScript
  • @aborruso/ckan-mcp-server
NoYesAug 21, 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