Advisory

GHSA-2j2x-2gpw-g8fm

Also known as: CVE-2020-36632

Summary

flat vulnerable to Prototype Pollution

Details

flat helps flatten/unflatten nested Javascript objects. 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 can 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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-12-25 21:30 UTC
Modified
2026-02-03 03:16 UTC

Affected packages and fixes

flat

npm · All systems

Affected

  • introduced 0, fixed 1.6.2 (semver)

Fixed versions

1.6.2

Fix

flat

npm · All systems

Affected

  • introduced 2.0.0, fixed 2.0.2 (semver)

Fixed versions

2.0.2

Fix

flat

npm · All systems

Affected

  • introduced 3.0.0, fixed 3.0.1 (semver)

Fixed versions

3.0.1

Fix

flat

npm · All systems

Affected

  • introduced 4.0.0, fixed 4.0.2 (semver)

Fixed versions

4.0.2

Fix

flat

npm · All systems

Affected

  • introduced 5.0.0, fixed 5.0.1 (semver)

Fixed versions

5.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences