Malicious Code Injection in aquarius-jwt-bulma-webdriver-mocha Package
Summary
MAL-2025-139538: Malicious code in aquarius-jwt-bulma-webdriver-mocha (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 aquarius-jwt-bulma-webdriver-mocha package is part of the npm ecosystem, often utilized for web development and testing. It is designed to integrate JWT authentication with Bulma and Webdriver for automated testing. However, this package has been compromised, leading to significant security concerns due to its malicious behavior.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the aquarius-jwt-bulma-webdriver-mocha package. It is associated with the tea.xyz token reward campaign, which aims to inflate developer reputation scores by flooding the npm registry with derivative packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to pollution of the npm registry and potential exploitation of developers' environments.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall aquarius-jwt-bulma-webdriver-mocha
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, avoid using the aquarius-jwt-bulma-webdriver-mocha package until a secure version is released. Consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The aquarius-jwt-bulma-webdriver-mocha package has been compromised, posing a significant security risk to developers. Immediate action is required to remove the package and monitor for updates. Utilizing tools like Vulert can help in identifying vulnerabilities in your projects.
See every vulnerability recorded for aquarius-jwt-bulma-webdriver-mocha →
FAQ
The vulnerability involves malicious code that modifies package.json files and floods the npm registry with derivative packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Check your application using the Vulert playground at Vulert Scanner.
Uninstall the aquarius-jwt-bulma-webdriver-mocha package immediately and monitor for any updates or patches.
While specific exploits have not been detailed, the malicious behavior could lead to unauthorized access and manipulation of your project.
Yes, the malicious code can lead to performance degradation and instability in your application due to the pollution of the npm registry.