Command Injection Affecting props package, versions *


Severity

Recommended
0.0
medium
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 Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PROPS-1015750
  • published14 Dec 2020
  • disclosed14 Dec 2020
  • creditAlessio Della Libera (d3lla)

Introduced: 14 Dec 2020

CVE NOT AVAILABLE CWE-78  (opens in a new tab)
First added by Snyk

How to fix?

There is no fixed version for props.

Overview

props is an extract json/yaml from the beginning of text files

Affected versions of this package are vulnerable to Command Injection due to Unsafe Deserialization in props module. The module uses yaml-js.load() function to load a YAML file without any validation/sanitization. If an attacker can control the YAML file, it could run arbitrary JavaScript code on the victim machine.

References

CVSS Scores

version 3.1