org.mvnpm:js-yaml@4.1.1

  • latest version

    5.5.0

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:js-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
    • H
    Allocation of Resources Without Limits or Throttling

    org.mvnpm:js-yaml is a human-friendly data serialization language.

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the merge key (<<) handling of the loader, where the maxTotalMergeKeys budget does not count empty mappings against its limit. An attacker can consume significant CPU, on the order of O(N*K) for N empty mappings merged K times, with a relatively small document by repeatedly merging a large sequence of empty mappings so the budget counter never increments.

    Note: This requires YAML merge processing to be enabled for untrusted YAML, which is the default behavior in versions 3 and 4, but is not the default in version 5.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:js-yaml to version 4.3.2 or higher.

    [3.7.0,4.3.2)
    • H
    Inefficient Algorithmic Complexity

    org.mvnpm:js-yaml is a human-friendly data serialization language.

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity through the yaml.load process. An attacker can cause excessive CPU consumption and block the event loop by providing a specially crafted YAML document containing a large !!omap sequence.

    How to fix Inefficient Algorithmic Complexity?

    Upgrade org.mvnpm:js-yaml to version 4.3.1 or higher.

    [3.7.0,4.3.1)
    • H
    Inefficient Algorithmic Complexity

    org.mvnpm:js-yaml is a human-friendly data serialization language.

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in merge key (<<) handling during YAML parsing, where each mapping in a chain re-enumerates the keys inherited from the previous mapping. An attacker can exhaust CPU and cause denial of service by supplying a document with N chained merge mappings, which forces roughly O(N^2) work for O(N) input. Exploitation requires the application to parse untrusted YAML with the default or YAML11 schema, under which merge keys are resolved.

    How to fix Inefficient Algorithmic Complexity?

    Upgrade org.mvnpm:js-yaml to version 3.15.0, 4.3.0 or higher.

    [3.7.0,3.15.0)[4.1.0,4.3.0)
    • M
    Inefficient Algorithmic Complexity

    org.mvnpm:js-yaml is a human-friendly data serialization language.

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the storeMappingPair() function in loader.js when handling repeated aliases in merge sequences. An attacker can exhaust CPU resources and significantly degrade service availability by submitting malicious YAML documents.

    How to fix Inefficient Algorithmic Complexity?

    Upgrade org.mvnpm:js-yaml to version 3.15.0, 4.2.0 or higher.

    [,3.15.0)[4.1.0,4.2.0)