GHSA-mpg4-rc92-vx8v

Suggest an improvement
Source
https://github.com/advisories/GHSA-mpg4-rc92-vx8v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/07/GHSA-mpg4-rc92-vx8v/GHSA-mpg4-rc92-vx8v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mpg4-rc92-vx8v
Aliases
Related
Published
2024-07-29T17:46:16Z
Modified
2024-10-11T14:13:07Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
fast-xml-parser vulnerable to ReDOS at currency parsing
Details

Summary

A ReDOS that exists on currency.js was discovered by Gauss Security Labs R&D team.

Details

https://github.com/NaturalIntelligence/fast-xml-parser/blob/v4.4.0/src/v5/valueParsers/currency.js#L10 contains a vulnerable regex

PoC

pass the following string '\t'.repeat(13337) + '.'

Impact

Denial of service during currency parsing in experimental version 5 of fast-xml-parser-library

https://gauss-security.com

Database specific
{
    "nvd_published_at": "2024-07-29T16:15:05Z",
    "cwe_ids": [
        "CWE-1333",
        "CWE-400"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-07-29T17:46:16Z"
}
References

Affected packages

npm / fast-xml-parser

Package

Affected ranges

Type
SEMVER
Events
Introduced
4.3.5
Fixed
4.4.1