yaml@2.1.0

JavaScript parser and stringifier for YAML

  • latest version

    2.9.0

  • latest non vulnerable version

  • first published

    15 years ago

  • latest version published

    1 months ago

  • licenses detected

    • >=1.0.0-beta.1
  • Direct Vulnerabilities

    Known vulnerabilities in the yaml 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
    Uncontrolled Recursion

    Affected versions of this package are vulnerable to Uncontrolled Recursion in the compose/resolve phase due to using recursive function calls without a depth bound. An attacker can cause the application to throw a RangeError and potentially terminate the Node.js process by supplying a deeply nested YAML payload that exhausts the call stack.

    How to fix Uncontrolled Recursion?

    Upgrade yaml to version 1.10.3, 2.8.3 or higher.

    >=1.0.0 <1.10.3>=2.0.0 <2.8.3
    • H
    Uncaught Exception

    Affected versions of this package are vulnerable to Uncaught Exception due to improper validation of the input passed to the functions parseDocument and parseAllDocuments. Exploiting this vulnerability is possible when these functions are fed an invalid input with more than 80 carriage return characters (\r).

    How to fix Uncaught Exception?

    Upgrade yaml to version 2.2.2, 2.3.0-5 or higher.

    >=2.0.0-4 <2.2.2>=2.3.0-0 <2.3.0-5