Critical Malicious Code Vulnerability in csh Package

csh Updated 02 Oct 2025

Summary

14/08/2025
CRITICAL
No i
Critical
Not published

MAL-2025-17778: Malicious code in csh (npm). Affected versions are not published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The csh package is a Node.js library commonly used in various applications for shell scripting and command execution. It provides a range of functionalities that allow developers to interact with the system shell. However, the package has been identified to contain malicious code, posing significant security risks to applications that utilize it. This vulnerability can lead to unauthorized access, data breaches, and other malicious activities.

Vulnerability Detail

The vulnerability in the csh package arises from the inclusion of malicious code that can execute harmful operations on the host system. This code was introduced in version 0 and affects all subsequent versions. The ramifications of this vulnerability are severe, as it can compromise the integrity of applications, allowing attackers to manipulate or steal sensitive information. It is crucial for developers to be aware of this issue and take immediate action to mitigate the risks associated with it.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall csh

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

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

Workaround

As a temporary workaround, you can avoid using the csh package in your application until a secure alternative is implemented. Additionally, consider using environment variables or other secure methods for executing shell commands.

Conclusion

The csh package has been identified to contain malicious code that poses a significant security risk to applications. Developers must take immediate action to remove the package and seek secure alternatives. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

See every vulnerability recorded for csh →

Share this vulnerability

FAQ

The csh package is a Node.js library used for shell scripting and command execution in various applications.

The malicious code in csh can execute harmful operations, potentially leading to unauthorized access and data breaches.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring access to the code.

It is recommended to remove the csh package from your project and replace it with a secure alternative immediately.

Currently, there is no patch available for the csh package. It is advisable to remove it until a secure alternative is found.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall csh

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

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