fast-xml-parser@1.1.0 vulnerabilities

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

  • latest version

    4.5.1

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    23 hours ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    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) in currency.js, which can be triggered by supplying excessively long strings such as '\t'.repeat(13337) + '.'

    Note: The vulnerability is in the experimental "v5" functionality that is included in version 4.x during development, at the time of discovery.

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

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

    <4.4.1
    • 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