hughsk flat index.js unflatten prototype pollution
hughsk flat
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| flat npm |
|
|
hughsk flat
| Product | Affected | Fixed in |
|---|---|---|
| flat npm |
|
|
5.0.1A 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.
From the CVE record · VulDB
The unflatten function in hughsk flat’s index.js improperly allows modification of object prototype attributes. An attacker can initiate this remotely by manipulating input to the function. Authentication and user-interaction requirements are not specified.
Teams using the npm flat package should check versions below 1.6.2, 2.0.0–2.0.1, 3.0.0, 4.0.0–4.0.1, and 5.0.0.