Arbitrary Code Execution Affecting js-yaml package, versions <3.13.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-JSYAML-174129
  • published7 Apr 2019
  • disclosed5 Apr 2019
  • creditAlex Kocharin

Introduced: 5 Apr 2019

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

Upgrade js-yaml to version 3.13.1 or higher.

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.

CVSS Scores

version 3.1