js-yaml@2.1.2

Vulnerabilities 1 via 1 paths
Dependencies 4
Source npm
Package js-yaml

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0
high severity

Arbitrary Code Execution

  • Vulnerable module: js-yaml
  • Introduced through: js-yaml@2.1.2

Detailed paths

  • Introduced through: js-yaml@2.1.2
    Remediation: Upgrade to js-yaml@3.13.1.

Overview

js-yaml is a human-friendly data serialization language.

Affected versions of this package are vulnerable to Arbitrary Code Execution. When an object with an executable toString() property used as a map key, it will execute that function. This happens only for load(), which should not be used with untrusted data anyway. safeLoad() is not affected because it can't parse functions.

Remediation

Upgrade js-yaml to version 3.13.1 or higher.

References