Malicious Code Vulnerability in uglify-parse-socket-new-error Package

Summary

13/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-190027: Malicious code in uglify-parse-socket-new-error (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 uglify-parse-socket-new-error package is part of the npm ecosystem, typically used for parsing and handling socket errors in JavaScript applications. However, this package has been identified as part of a malicious campaign that floods the npm registry with derivative packages to inflate developer reputation scores for token rewards. Its functionality is compromised due to the presence of malicious scripts that alter its behavior.

Vulnerability Detail

This vulnerability originates from a malicious payload embedded within the uglify-parse-socket-new-error package. The payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which leads to the continuous republishing of variants that pollute the npm registry. This can result in security risks for developers who inadvertently use these compromised packages, potentially exposing their applications to further vulnerabilities and malicious activities.

How To Fix

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

npm uninstall uglify-parse-socket-new-error

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 uglify-parse-socket-new-error package altogether and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities in real-time.

Conclusion

The uglify-parse-socket-new-error package has been identified as containing malicious code that poses significant security risks. It is crucial for developers to remove this package and monitor their applications for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your software by providing real-time alerts for open-source vulnerabilities.

See every vulnerability recorded for uglify-parse-socket-new-error →

Share this vulnerability

FAQ

It is an npm package used for parsing socket errors in JavaScript applications, but it has been compromised with malicious code.

You can use Vulert, which monitors your package-lock.json for vulnerabilities. You can check your application using the Vulert playground without any signup.

Using the compromised package can lead to security vulnerabilities, including exposure to malicious scripts that can alter your application’s behavior.

Regularly audit your dependencies, use tools like Vulert for monitoring, and stay updated with security advisories from the npm registry.

Remove the package immediately and monitor your application for any unusual behavior. Consider replacing it with a secure alternative.

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 uglify-parse-socket-new-error

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