Improper Privilege Management Affecting shelljs package, versions <0.8.5


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (20th percentile)

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 Improper Privilege Management vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SHELLJS-2332187
  • published12 Jan 2022
  • disclosed11 Jan 2022
  • credithaxatron

Introduced: 11 Jan 2022

CVE-2022-0144  (opens in a new tab)
CWE-269  (opens in a new tab)

How to fix?

Upgrade shelljs to version 0.8.5 or higher.

Overview

shelljs is a wrapper for the Unix shell commands for Node.js.

Affected versions of this package are vulnerable to Improper Privilege Management. When ShellJS is used to create shell scripts which may be running as root, users with low-level privileges on the system can leak sensitive information such as passwords (depending on implementation) from the standard output of the privileged process OR shutdown privileged ShellJS processes via the exec function when triggering EACCESS errors.

Note: Thi only impacts the synchronous version of shell.exec().

CVSS Scores

version 3.1