CVE-2017-16202: Vulnerability in cofeescript Package

cofeescript Updated 02 Oct 2025

Summary

06/08/2018
No i
Moderate
Not published

CVE-2017-16202: cofeescript is malware. Affects cofeescript versions 1.0.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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The cofeescript package is a popular npm package used for compiling CoffeeScript code into JavaScript. It provides a convenient way for developers to write and maintain CoffeeScript projects. However, the package has been found to contain a piece of malware that exfiltrates sensitive data during installation. This includes a user's private SSH key and bash history, which are then sent to attacker-controlled locations. All versions of the package have been unpublished from the npm registry to prevent further exploitation.

Vulnerability Detail

The vulnerability in the cofeescript package allows an attacker to steal sensitive data from users' systems. When the package is installed, it initiates the exfiltration process, sending the user's private SSH key and bash history to the attacker's controlled locations. This can lead to unauthorized access to the user's systems, compromise of their credentials, and potential exposure of sensitive information. The malware is embedded within the package and executes its malicious activities during installation.

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 →

Conclusion

The cofeescript package has been found to contain a malware that exfiltrates sensitive data during installation. It is crucial to take immediate action if you have this package installed in your environment. Delete the package, clear your npm cache, regenerate your SSH keys, and review and update any compromised credentials. It is also recommended to review any services that may have been exposed and look for indicators of compromise. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for cofeescript →

Share this vulnerability

FAQ

The cofeescript package is an npm package used for compiling CoffeeScript code into JavaScript. It simplifies the development process for CoffeeScript projects.

The cofeescript malware exfiltrates a user's private SSH key and bash history, sending them to attacker-controlled locations.

You can check if cofeescript is installed by running the command npm ls cofeescript in your project directory or by inspecting your package.json file.

If cofeescript is installed, you should delete the package, clear your npm cache, ensure it is not present in any other package.json files, regenerate your SSH keys, and review and update any other sensitive credentials that may have been compromised.

To prevent this vulnerability, it is important to regularly update your packages and be cautious when installing packages from untrusted sources. Additionally, consider using package vulnerability monitoring tools like Vulert to receive real-time alerts about vulnerabilities in your software.

Related vulnerabilities

Recent vulnerabilities recorded for cofeescript.

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