Malicious Code Detected in xk6-top Package - Version 10.1.1
Summary
MAL-2025-6225: Malicious code in xk6-top (npm). Affects xk6-top versions >= 7.1.1. 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 xk6-top package is an npm module designed to enhance the capabilities of the k6 load testing tool by providing additional metrics and functionalities. It is widely used in performance testing scenarios to simulate user traffic and analyze system performance. However, version 10.1.1 of this package has been flagged for malicious behavior, which poses a significant risk to users relying on its functionalities.
Vulnerability Detail
The vulnerability originates from the xk6-top package version 10.1.1, which has been identified as malicious by the OpenSSF Package Analysis project. The package communicates with a domain associated with malicious activity, potentially leading to data breaches, unauthorized access, or other security incidents. Users of this package may unknowingly expose their systems to threats, making it critical to address this issue promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall xk6-top
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 measure, users can avoid using the xk6-top package altogether until a secure version is confirmed. Alternatively, consider using other load testing tools that do not exhibit such vulnerabilities.
Conclusion
The xk6-top package version 10.1.1 has been identified as malicious, posing significant security risks to users. It is crucial to update to a secure version or consider alternative solutions to mitigate potential threats. Regular monitoring of dependencies using tools like Vulert can help maintain application security.
See every vulnerability recorded for xk6-top →
FAQ
xk6-top is an npm module that extends the k6 load testing tool by providing additional metrics and functionalities for performance testing.
Version 10.1.1 has been flagged for communicating with a domain linked to malicious activities, posing security risks to users.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
As a workaround, consider avoiding the use of the xk6-top package until a secure version is released or explore alternative load testing tools.
Utilize tools like Vulert, which can monitor your package-lock.json file to alert you of any vulnerabilities in your open-source dependencies.