org.mvnpm:fast-xml-parser@5.4.1

  • latest version

    5.11.2

  • first published

    1 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm: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
    Inefficient Algorithmic Complexity

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

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the readStopNodeData() function in OrderedObjParser.js. An attacker can block the event loop by supplying XML in which a stop node body contains many <a fragments and no closing >, which makes the function rescan the entire remaining input from every <. This affects only applications that set the non-default stopNodes option to match an element in the parsed document.

    How to fix Inefficient Algorithmic Complexity?

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

    [0,)
    • H
    Improper Validation of Specified Quantity in Input

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

    Upgrade org.mvnpm:fast-xml-parser to version 5.5.7 or higher.

    [4.0.11,5.5.7)
    • H
    XML Entity Expansion

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

    Upgrade org.mvnpm:fast-xml-parser to version 5.5.6 or higher.

    [4.0.11,5.5.6)