Malicious Package in uglyfi.js - Open Source Vulnerability

uglyfi.js Updated 02 Oct 2025

Summary

03/09/2020
CRITICAL
No i
Critical
9.8

GHSA-8jf2-cq6v-w234: Malicious Package in uglyfi.js. Affects uglyfi.js versions >= 0.0.0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

uglyfi.js is an npm package used for [provide brief description of the package functionality]. It is vulnerable to a critical security issue that involves the presence of malicious code in version 0.17.3. This code is executed as a preinstall script and can compromise the entire system. The package is designed to exploit user typos when installing modules, leading to the download and execution of a remote file that opens a backdoor on the affected system.

Vulnerability Detail

The vulnerability (GHSA-8jf2-cq6v-w234) in uglyfi.js version 0.17.3 allows an attacker to gain full control of any system where the package is installed. The malicious code is executed during the package installation process, enabling the attacker to download and execute arbitrary files on the compromised system. This can result in unauthorized access, data theft, and the potential for further malicious activities. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

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

There is no known workaround for this vulnerability. It is crucial to follow the recommended steps for fixing the issue and securing the compromised systems.

Conclusion

The presence of a malicious package in uglyfi.js version 0.17.3 poses a critical security risk to any system where it is installed. It is recommended to immediately identify and secure all affected systems by rotating keys and secrets, removing the package, and conducting a thorough security audit. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for uglyfi.js →

Share this vulnerability

FAQ

The impact of this vulnerability is severe. Any system with the affected version of uglyfi.js installed is fully compromised, allowing unauthorized access and potential data theft.

You can use Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities using package-lock.json without requiring access to the code or installation.

While removing the uglyfi.js package is recommended, it does not guarantee the removal of all malicious software resulting from its installation. A thorough security audit is necessary to ensure the system is fully secure.

There are no known mitigations for this vulnerability. It is crucial to follow the recommended steps for fixing the issue and securing the compromised systems.

To prevent similar vulnerabilities, it is important to regularly update packages to their latest versions, verify the integrity of packages before installation, and implement security measures such as code reviews and vulnerability scanning.

Related vulnerabilities

Recent vulnerabilities recorded for uglyfi.js.

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