org.webjars.npm:fast-xml-parser@5.2.5 vulnerabilities

  • latest version

    5.2.5

  • first published

    3 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm: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
    • H
    Improper Validation of Specified Quantity in Input

    org.webjars.npm:fast-xml-parser is a Validate XML, Parse XML, Build XML without C/C++ based libraries

    Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input in the DocTypeReader component when the maxEntityCount or maxEntitySize configuration options are explicitly set to 0. Due to JavaScript's falsy evaluation, the intended limits are bypassed. An attacker can cause unbounded entity expansion and exhaust server memory by supplying crafted XML input containing numerous large entities.

    Note:

    This is only exploitable if the application is configured with processEntities enabled and either maxEntityCount or maxEntitySize set to 0.

    How to fix Improper Validation of Specified Quantity in Input?

    A fix was pushed into the master branch but not yet published.

    [4.0.0-beta.8,)
    • H
    XML Entity Expansion

    org.webjars.npm: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 the replaceEntitiesValue() function, which doesn't protect unlimited expansion of numeric entities the way it does DOCTYPE data (as described and fixed for CVE-2026-26278). An attacker can exhaust system memory and CPU resources by submitting XML input containing a large number of numeric character references - &#NNN; and &#xHH;.

    Note: This is a bypass for the fix to the DOCTYPE expansion vulnerability in 5.3.6.

    How to fix XML Entity Expansion?

    A fix was pushed into the master branch but not yet published.

    [4.0.0-beta.0,)
    • M
    Buffer Overflow

    org.webjars.npm: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?

    A fix was pushed into the master branch but not yet published.

    [0,)
    • H
    XML Entity Expansion

    org.webjars.npm: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?

    A fix was pushed into the master branch but not yet published.

    [4.1.3,)
    • H
    Incorrect Regular Expression

    org.webjars.npm: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?

    A fix was pushed into the master branch but not yet published.

    [4.2.5,)
    • H
    Uncaught Exception

    org.webjars.npm: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?

    A fix was pushed into the master branch but not yet published.

    [5.2.5,)