Improper Privilege Management in node-shelljs Package - CVE-2022-0144

node-shelljs Updated 02 Oct 2025

Summary

11/01/2022
N/A
No i
High
7.1

UBUNTU-CVE-2022-0144: shelljs is vulnerable to Improper Privilege Management. Affects node-shelljs versions 0.7.5-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The node-shelljs package is a popular utility for executing shell commands in Node.js applications. It provides a simple and consistent API for shell command execution, making it easier for developers to integrate shell commands into their JavaScript code. However, this package has been found to have a vulnerability that could lead to improper privilege management, potentially allowing unauthorized access to sensitive operations.

Vulnerability Detail

The vulnerability identified as CVE-2022-0144 in the node-shelljs package stems from improper privilege management. This issue allows attackers to exploit the package to gain elevated privileges, which can lead to unauthorized access to system resources or sensitive data. The vulnerability affects versions 0.7.5-1 and 0.8.3-1 of the package in Ubuntu distributions. The CVSS score for this vulnerability is 7.1, indicating a high severity level that necessitates immediate attention.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If an immediate upgrade is not feasible, consider restricting access to the affected systems and monitoring for any suspicious activity. Additionally, avoid using the vulnerable versions of node-shelljs in critical applications until the package is updated.

Conclusion

The node-shelljs package has a critical vulnerability (CVE-2022-0144) that can lead to improper privilege management. It is essential to update to a patched version to mitigate risks associated with this vulnerability. Users should also consider using tools like Vulert to monitor for vulnerabilities in their applications.

See every vulnerability recorded for node-shelljs →

Share this vulnerability

FAQ

CVE-2022-0144 is a vulnerability in the node-shelljs package that allows for improper privilege management, potentially leading to unauthorized access.

The affected versions are 0.7.5-1 for Ubuntu 18.04 LTS and 0.8.3-1 for Ubuntu 20.04 LTS.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If you cannot upgrade, restrict access to the affected systems and monitor for any suspicious activity as a temporary measure.

Vulert is a tool that monitors and alerts in real-time for open-source vulnerabilities in software using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for node-shelljs.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback