fast-xml-parser@5.5.6 vulnerabilities

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

  • latest version

    5.5.8

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    3 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
    • H
    Improper Validation of Specified Quantity in Input

    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 fast-xml-parser to version 5.5.7 or higher.

    >=4.0.0-beta.3 <5.5.7