CVE-2020-36632
hughsk flat index.js unflatten prototype pollution
Reported by vuldb · Published December 25, 2022
flat is fixed in 5.0.1, 4.0.2, 3.0.1 and 2 more (npm)
A vulnerability, which was classified as critical, was found in hughsk flat up to 5.0.0. This affects the function unflatten of the file index.js. The manipulation leads to improperly controlled modification of object prototype attributes ('prototype pollution'). It is possible to initiate the attack remotely. Upgrading to version 5.0.1 is able to address this issue. The name of the patch is 20ef0ef55dfa028caddaedbcb33efbdb04d18e13. It is recommended to upgrade the affected component. The identifier VDB-216777 was assigned to this vulnerability.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| flat | npm | 5.0.1, 4.0.2, 3.0.1, 2.0.2, 1.6.2 |
| flat | flat_project | 5.0.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| hughsk | flat | 5.0 |
| npm | flat | 0, 2.0.0, 3.0.0 |
| hughsk | flat | 5.0 |
Timeline
- Dec 25, 2022 CVE Published
- Dec 26, 2022 EPSS Score (30 in total, the first dated here)
- Jan 21, 2026 CVE Updated
- Mar 9, 2026 Security Advisory
- Aug 30, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-36632
vulnetix vdb fixes CVE-2020-36632
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-36632/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- vdb-entrytechnical-description
- signaturepermissions-required
- issue-tracking
- issue-tracking
- patch
- patch
- https://nvd.nist.gov/vuln/detail/CVE-2020-36632 advisory
- https://github.com/advisories/GHSA-2j2x-2gpw-g8fm advisory
- https://github.com/hughsk/flat url
- https://github.com/hughsk/flat/compare/3.0.0...3.0.1 url
- https://github.com/hughsk/flat/compare/4.1.0...4.1.1 url
- https://github.com/hughsk/flat/compare/v1.6.0...1.6.2 url
- https://github.com/hughsk/flat/compare/v2.0.1...2.0.2 url