Critical Malicious Code Vulnerability in @antstackio/express-graphql-proxy Package
Summary
MAL-2025-191188: Malicious code in @antstackio/express-graphql-proxy (npm). Affects @antstackio/express-graphql-proxy versions 0.2.8. 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 @antstackio/express-graphql-proxy package is an npm library designed to facilitate the integration of GraphQL APIs with Express applications. It allows developers to create a proxy that can handle GraphQL queries and responses efficiently. However, this package has been compromised, making it susceptible to severe security threats.
Vulnerability Detail
The vulnerability stems from a malicious code injection by the Sha1-Hulud: The Second Coming NPM worm. This worm is designed to steal sensitive tokens and credentials from users, subsequently publishing them to GitHub. It can propagate itself to other npm packages owned by the user and establish persistence through GitHub actions. Additionally, there is a risk that the worm may delete the user's home directory, leading to significant data loss.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @antstackio/express-graphql-proxy
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, you can remove the affected package from your project until a secure version is released. You can do this by executing the command: npm uninstall @antstackio/express-graphql-proxy. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The @antstackio/express-graphql-proxy package has been compromised by a malicious NPM worm, posing significant security risks to users. It is essential to take immediate action by updating or removing the package and monitoring for any signs of compromise. Utilizing tools like Vulert can help in maintaining the security of your applications.
See every vulnerability recorded for @antstackio/express-graphql-proxy →
FAQ
The vulnerability involves malicious code that steals sensitive information and can propagate to other npm packages.
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.
If you suspect a compromise, immediately change your tokens and credentials, remove the affected package, and monitor your repositories for unauthorized changes.
Currently, there is no specific patched version mentioned. It is advisable to keep an eye on the package repository for updates.
The consequences include unauthorized access to sensitive data, potential data loss, and the risk of further propagation of the malicious code.