fast-xml-parser@3.2.1 vulnerabilities

Validate XML, Parse XML, Build XML without C/C++ based libraries

Direct Vulnerabilities

Known vulnerabilities in the fast-xml-parser package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Regular Expression Denial of Service (ReDoS)

fast-xml-parser is a Validate XML, Parse XML, Build XML without C/C++ based libraries

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to allowing special characters in entity names, which are not escaped or sanitized. An attacker can inject an inefficient regex in the entity replacement step of the parser, this can cause the parser to stall for an indefinite amount of time.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade fast-xml-parser to version 4.2.4 or higher.

<4.2.4
  • M
Prototype Pollution

fast-xml-parser is a Validate XML, Parse XML, Build XML without C/C++ based libraries

Affected versions of this package are vulnerable to Prototype Pollution due to improper argument validation, which is exploitable via the aName variable.

How to fix Prototype Pollution?

Upgrade fast-xml-parser to version 4.1.2 or higher.

<4.1.2