GHSA-2j2x-2gpw-g8fm

Suggest an improvement
Source
https://github.com/advisories/GHSA-2j2x-2gpw-g8fm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-2j2x-2gpw-g8fm/GHSA-2j2x-2gpw-g8fm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2j2x-2gpw-g8fm
Aliases
Published
2022-12-25T21:30:22Z
Modified
2023-11-08T04:03:48.649741Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-12-25T20:15:00Z",
    "github_reviewed_at": "2022-12-30T16:27:14Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-1321"
    ]
}
References

Affected packages

npm / flat

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.0.1