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

node-shelljs Updated 02 Oct 2025

Summary

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

CVE-2022-0144: shelljs is vulnerable to Improper Privilege Management. Affects node-shelljs versions < d919d22dd6de385edaa9d90313075a77f74b338c. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

node-shelljs is a popular JavaScript library that provides a portable way to execute shell commands in Node.js applications. It allows developers to write scripts that can run commands in the shell, making it easier to automate tasks and manage system processes. However, the library has been found to have a vulnerability related to improper privilege management, which can lead to unauthorized access and potential exploitation.

Vulnerability Detail

CVE-2022-0144 is a vulnerability in the node-shelljs package that stems from improper privilege management. This issue allows an attacker to exploit the library to gain elevated privileges, potentially leading to unauthorized access to sensitive data or system resources. The vulnerability has a CVSS score of 7.1, indicating a high severity level, and it affects multiple versions of the package across different Debian ecosystems. If left unaddressed, this vulnerability could result in significant security risks for applications relying on 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 →

Workaround

If upgrading is not immediately possible, a temporary workaround is to limit the permissions of the user account running the application. This can help mitigate the risk of privilege escalation until a proper update can be applied. Additionally, reviewing and restricting access to sensitive data and system resources can further reduce potential exposure.

Conclusion

CVE-2022-0144 represents a significant security risk for applications using the node-shelljs package due to improper privilege management. It is crucial for developers to address this vulnerability by upgrading to the recommended version or implementing workarounds to mitigate risks. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

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.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score of CVE-2022-0144 is 7.1, indicating a high severity level.

If an immediate upgrade is not possible, consider limiting the permissions of the user account running the application and reviewing access to sensitive data.

More information can be found in the official CVE database and on the GitHub repository for shelljs.

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