Command Injection Affecting props package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

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 ID SNYK-JS-PROPS-1015750
  • published 14 Dec 2020
  • disclosed 14 Dec 2020
  • credit Alessio Della Libera (d3lla)

Introduced: 14 Dec 2020

CVE NOT AVAILABLE CWE-78 Open this link 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
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None