Critical Malicious Code Vulnerability in @antstackio/json-to-graphql Package
Summary
MAL-2025-191190: Malicious code in @antstackio/json-to-graphql (npm). Affects @antstackio/json-to-graphql versions 1.0.3. 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/json-to-graphql package is an npm library designed to facilitate the conversion of JSON data into GraphQL queries. It is widely used in applications that require seamless integration of JSON data with GraphQL APIs. However, this package has been compromised, making it susceptible to severe security threats.
Vulnerability Detail
The vulnerability originates from a malicious payload introduced by the Sha1-Hulud: The Second Coming NPM worm. This worm is capable of stealing tokens and credentials from users and publishing them to GitHub. Additionally, it can propagate itself to other npm packages owned by the user and establish persistence through GitHub actions. The malicious code may also lead to the destruction of the user's home directory, posing a significant risk to data integrity and security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @antstackio/json-to-graphql
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 @antstackio/json-to-graphql package from your project until a secure version is released. You can do this by executing: npm uninstall @antstackio/json-to-graphql. Additionally, monitor your GitHub repositories for any unauthorized changes or actions.
Conclusion
The @antstackio/json-to-graphql package has been compromised by a malicious npm worm, posing serious security risks. It is essential to take immediate action by updating or removing the package and monitoring your systems for any unauthorized activity. Utilizing tools like Vulert can aid in real-time vulnerability monitoring.
See every vulnerability recorded for @antstackio/json-to-graphql →
FAQ
The malicious code is part of an npm worm that steals sensitive information such as tokens and credentials.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
If you have installed the compromised package, it is recommended to uninstall it immediately and monitor your systems for any unauthorized access.
Regularly updating your dependencies and using tools like Vulert to monitor vulnerabilities can help prevent such issues.
Ignoring this vulnerability could lead to unauthorized access to sensitive information, data loss, and potential damage to your system.