CVE-2020-36632Flat Project Flat
Critical 9.8 No auth needed
Follow: this CVE · Flat Project · Flat Project Flat We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Dec 25, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Flat.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | flat |
< 1.6.2 |
1.6.2 |
npm install flat@1.6.2 |
| npm | flat |
≥ 2.0.0 < 2.0.2 |
2.0.2 |
npm install flat@2.0.2 |
| npm | flat |
≥ 3.0.0 < 3.0.1 |
3.0.1 |
npm install flat@3.0.1 |
| npm | flat |
≥ 4.0.0 < 4.0.2 |
4.0.2 |
npm install flat@4.0.2 |
| npm | flat |
≥ 5.0.0 < 5.0.1 |
5.0.1 |
npm install flat@5.0.1 |
Per OSV / GitHub Advisories (GHSA-2j2x-2gpw-g8fm). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| flat_project | flat | < 5.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Issue Tracking Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- vuldb.com Third Party Advisory
- vuldb.com Third Party Advisory