hughsk flat index.js unflatten prototype pollution
Published Dec 25, 2022
9.8
CRITICALCVSS 3.1
EPSS 1.12%
Description
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.
Affected products
-
- Version 5.0StatusaffectedConstraints-
- Version
- < 5.0.1
No data.
No Red Hat product state for this CVE.
flat
npm
Introduced 3.0.0 Fixed 3.0.1flat
npm
Introduced 4.0.0 Fixed 4.0.2flat
npm
Introduced 5.0.0 Fixed 5.0.1flat
npm
Introduced 0 Fixed 1.6.2flat
npm
Introduced 2.0.0 Fixed 2.0.2
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | flat | 3.0.0 | 3.0.1 |
| npm | flat | 4.0.0 | 4.0.2 |
| npm | flat | 5.0.0 | 5.0.1 |
| npm | flat | 0 | 1.6.2 |
| npm | flat | 2.0.0 | 2.0.2 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (CVE.org) ▾
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 1.12% (0.01116) | 64.88th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.11% (0.01107) | 61.44th | v5 (v2026.06.15) |
| Nov 18, 2025 | 1.42% (0.01423) | 78.94th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.24% (0.00241) | 45.40th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.73% (0.00726) | 81.32th | v3 (v2023.03.01) |
| Jul 17, 2024 | 0.59% (0.00594) | 78.56th | v3 (v2023.03.01) |
| Jun 6, 2024 | 0.61% (0.00609) | 78.64th | v3 (v2023.03.01) |
| Mar 31, 2024 | 0.52% (0.00518) | 76.34th | v3 (v2023.03.01) |
| Mar 4, 2024 | 0.46% (0.00455) | 74.64th | v3 (v2023.03.01) |
| Jan 27, 2024 | 0.46% (0.00455) | 72.64th | v3 (v2023.03.01) |
| Jan 1, 2024 | 0.38% (0.00383) | 70.20th | v3 (v2023.03.01) |
| Nov 25, 2023 | 0.22% (0.00219) | 59.79th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.19% (0.00189) | 54.62th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.11% (0.01108) | 55.18th | v2 (v2022.01.01) |
| Jan 5, 2023 | 1.11% (0.01108) | 54.21th | v2 (v2022.01.01) |
| Dec 26, 2022 | 1.03% (0.01034) | 40.86th | v2 (v2022.01.01) |
References (12)
- https://github.com/advisories/GHSA-2j2x-2gpw-g8fm Advisory
- https://github.com/hughsk/flat/commit/20ef0ef55dfa028caddaedbcb33efbdb04d18e13 patchThird Party Advisory
- https://github.com/hughsk/flat/compare/3.0.0...3.0.1
- https://github.com/hughsk/flat/compare/4.1.0...4.1.1
- https://github.com/hughsk/flat/compare/v1.6.0...1.6.2
- https://github.com/hughsk/flat/compare/v2.0.1...2.0.2
- https://github.com/hughsk/flat/issues/105 issue-trackingIssue TrackingThird Party Advisory
- https://github.com/hughsk/flat/pull/106 issue-trackingPatchThird Party Advisory
- https://github.com/hughsk/flat/releases/tag/5.0.1 patchRelease NotesThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2020-36632
- https://vuldb.com/?ctiid.216777 signaturepermissions-requiredThird Party Advisory
- https://vuldb.com/?id.216777 vdb-entrytechnical-descriptionThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-2j2x-2gpw-g8fm | Advisory | |
| https://github.com/hughsk/flat/commit/20ef0ef55dfa028caddaedbcb33efbdb04d18e13 | patchThird Party Advisory | |
| https://github.com/hughsk/flat/compare/3.0.0...3.0.1 | ||
| https://github.com/hughsk/flat/compare/4.1.0...4.1.1 | ||
| https://github.com/hughsk/flat/compare/v1.6.0...1.6.2 | ||
| https://github.com/hughsk/flat/compare/v2.0.1...2.0.2 | ||
| https://github.com/hughsk/flat/issues/105 | issue-trackingIssue TrackingThird Party Advisory | |
| https://github.com/hughsk/flat/pull/106 | issue-trackingPatchThird Party Advisory | |
| https://github.com/hughsk/flat/releases/tag/5.0.1 | patchRelease NotesThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36632 | ||
| https://vuldb.com/?ctiid.216777 | signaturepermissions-requiredThird Party Advisory | |
| https://vuldb.com/?id.216777 | vdb-entrytechnical-descriptionThird Party Advisory |
Change history (0)
No recorded changes yet.