fast-xml-parser@5.0.9 vulnerabilities

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

  • latest version

    5.4.2

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    7 days ago

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Buffer Overflow

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

    Affected versions of this package are vulnerable to Buffer Overflow via the XMLBuilder when preserveOrder:true is set. An attacker can cause the application to crash by providing specially crafted input data.

    How to fix Buffer Overflow?

    Upgrade fast-xml-parser to version 4.5.4, 5.3.8 or higher.

    <4.5.4>=5.0.0 <5.3.8
    • H
    Incorrect Regular Expression

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

    Affected versions of this package are vulnerable to Incorrect Regular Expression in the entity parsing RegEx in DOCTYPE declarations. An attacker can inject arbitrary values that override built-in XML entities by crafting entity names containing ., which is interpreted as a regex wildcard, allowing malicious content to be substituted in place of standard entities when the XML is parsed and subsequently rendered or used in sensitive contexts.

    How to fix Incorrect Regular Expression?

    Upgrade fast-xml-parser to version 4.5.4, 5.3.5 or higher.

    >=4.1.3 <4.5.4>=5.0.0 <5.3.5
    • H
    XML Entity Expansion

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

    Affected versions of this package are vulnerable to XML Entity Expansion in replaceEntitiesValue() when handling excessive DOCTYPE input. An attacker can cause excessive resource consumption and make the application unresponsive by submitting malicious XML input with large text entities referenced multiple times. This is a bypass for Billion Laughs protection in DocTypeReader.js, which prevents excessive referencing within and entity, but doesn't prevent repeated expansion of large entities.

    How to fix XML Entity Expansion?

    Upgrade fast-xml-parser to version 4.5.4, 5.3.6 or higher.

    >=4.1.3 <4.5.4>=5.0.0 <5.3.6
    • H
    Uncaught Exception

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

    Affected versions of this package are vulnerable to Uncaught Exception in the numeric entity processing when parsing XML containing out-of-range entity code points. An attacker can cause the application to crash by submitting specially crafted XML input that triggers an uncaught exception.

    How to fix Uncaught Exception?

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

    >=5.0.9 <5.3.4