GitHub Advisoryadvisory · npm

GHSA-mpg4-rc92-vx8v fast-xml-parser vulnerable to ReDOS at currency parsing

HIGH Published 2024-07-29 Modified 2024-10-11 Official page ↗
Aliases
CVE-2024-41818
Ecosystem
npm
Packages
fast-xml-parser
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-1333, CWE-400
Reviewed
2024-07-29

Affected packages

• npm fast-xml-parser: >= 4.3.5, < 4.4.1 → fixed in 4.4.1

Description

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

Related

Alias · CVE (1)

  • CVE-2024-41818 fast-xml-parser is an open source, pure javascript xml parser. vulnerability

Weakness · CWE (2)

  • CWE-1333 Inefficient Regular Expression Complexity weakness
  • CWE-400 Uncontrolled Resource Consumption weakness

References