Malicious Code Detected in cluster-nextjs-html-webpack-plugin-scripts Package
Summary
MAL-2025-17200: Malicious code in cluster-nextjs-html-webpack-plugin-scripts (npm). Affected versions are not published. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The cluster-nextjs-html-webpack-plugin-scripts package is designed to facilitate the integration of HTML Webpack Plugin with Next.js applications. It streamlines the process of managing HTML files in server-side rendered applications, making it easier for developers to build and deploy their projects. However, this package has been identified as containing malicious code, posing significant security risks to users who rely on it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the cluster-nextjs-html-webpack-plugin-scripts package. This code can potentially compromise the integrity of applications using this package, leading to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cluster-nextjs-html-webpack-plugin-scripts
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 workaround, consider using alternative packages that provide similar functionality without the associated risks. Always ensure to review the security status of packages before integrating them into your projects.
Conclusion
The discovery of malicious code in the cluster-nextjs-html-webpack-plugin-scripts package highlights the importance of vigilance in managing open-source dependencies. Users are urged to take immediate action to protect their applications and consider using tools like Vulert for real-time vulnerability monitoring.
See every vulnerability recorded for cluster-nextjs-html-webpack-plugin-scripts →
FAQ
It is a package designed to integrate HTML Webpack Plugin with Next.js applications, simplifying the management of HTML files.
The specific nature of the malicious code has not been disclosed, but it poses risks such as unauthorized access and data breaches.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Currently, there is no patched version available. It is advised to remove the package until a secure version is released.
Remove the cluster-nextjs-html-webpack-plugin-scripts package from your project immediately and consider using alternative packages.