Malicious Code Injection in async-nightwatch-auriga-html-webpack-plugin: A Critical Vulnerability

Summary

12/11/2025
CRITICAL
No i
Critical
Not published

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 ↓

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

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 →

Share this vulnerability

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.

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 →

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.