Malicious Code Injection in async-nightwatch-auriga-html-webpack-plugin: A Critical Vulnerability
Summary
MAL-2025-139630: Malicious code in async-nightwatch-auriga-html-webpack-plugin (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 async-nightwatch-auriga-html-webpack-plugin is an npm package designed to facilitate the integration of Nightwatch.js with Webpack for automated testing. It allows developers to streamline their testing workflows by providing a seamless connection between these two tools. However, this package has been compromised, making it susceptible to malicious code injection, which can severely impact the integrity of applications using it.
Vulnerability Detail
This vulnerability originates from a malicious campaign targeting npm packages, specifically linked to the tea.xyz token reward initiative. The compromised package contains scripts that automatically modify the package.json file, removing private flags and altering version numbers. It generates random package names and continuously republishes variants, polluting the npm registry. This behavior can lead to unauthorized access, data breaches, and the potential for further exploitation of dependent applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall async-nightwatch-auriga-html-webpack-plugin
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, consider removing the async-nightwatch-auriga-html-webpack-plugin package from your project until a secure version is released. You can do this by executing:
npm uninstall async-nightwatch-auriga-html-webpack-plugin
This will prevent any potential exploitation while you await a fix.
Conclusion
The async-nightwatch-auriga-html-webpack-plugin has been identified as a compromised package with significant vulnerabilities due to malicious code injection. It is crucial for developers to take immediate action by updating or removing the package to safeguard their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for async-nightwatch-auriga-html-webpack-plugin →
FAQ
It is an npm package that integrates Nightwatch.js with Webpack to facilitate automated testing in JavaScript applications.
The vulnerability allows malicious code to be injected into your application, potentially leading to unauthorized access and data breaches.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Consider removing the package from your project as a temporary measure to mitigate risks until a secure version is available.
Detailed information can be found in the vulnerability report on the official GitHub repository or through security advisories related to npm packages.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.