CVE-2023-34104

fast-xml-parser is an open source, pure javascript xml parser. fast-xml-parser allows special characters in entity names, which are not escaped or sanitized. Since the entity name is used for creating a regex for searching and replacing entities in the XML body, an attacker can abuse it for denial of service (DoS) attacks. By crafting an entity name that results in an intentionally bad performing regex and utilizing it in the entity replacement step of the parser, this can cause the parser to stall for an indefinite amount of time. This problem has been resolved in v4.2.4. Users are advised to upgrade. Users unable to upgrade should avoid using DOCTYPE parsing by setting the `processEntities: false` option.
Configurations

Configuration 1 (hide)

cpe:2.3:a:fast-xml-parser_project:fast-xml-parser:*:*:*:*:*:node.js:*:*

History

22 Jan 2024, 18:15

Type Values Removed Values Added
References
  • () https://github.com/NaturalIntelligence/fast-xml-parser/commit/a4bdced80369892ee413bf08e28b78795a2b0d5b -

13 Jun 2023, 16:26

Type Values Removed Values Added
CPE cpe:2.3:a:fast-xml-parser_project:fast-xml-parser:*:*:*:*:*:node.js:*:*
CWE CWE-400
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.5
First Time Fast-xml-parser Project
Fast-xml-parser Project fast-xml-parser
References (MISC) https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-6w63-h3fj-q4vw - (MISC) https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-6w63-h3fj-q4vw - Mitigation, Vendor Advisory
References (MISC) https://github.com/NaturalIntelligence/fast-xml-parser/commit/39b0e050bb909e8499478657f84a3076e39ce76c - (MISC) https://github.com/NaturalIntelligence/fast-xml-parser/commit/39b0e050bb909e8499478657f84a3076e39ce76c - Patch

06 Jun 2023, 18:33

Type Values Removed Values Added
New CVE

Information

Published : 2023-06-06 18:15

Updated : 2024-02-28 20:13


NVD link : CVE-2023-34104

Mitre link : CVE-2023-34104

CVE.ORG link : CVE-2023-34104


JSON object : View

Products Affected

fast-xml-parser_project

  • fast-xml-parser
CWE
CWE-1333

Inefficient Regular Expression Complexity

CWE-400

Uncontrolled Resource Consumption