Critical Malicious Code Vulnerability in @silgi/openapi Package
Summary
MAL-2025-191316: Malicious code in @silgi/openapi (npm). Affects @silgi/openapi versions 0.7.4. 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 @silgi/openapi package is a Node.js library designed for working with OpenAPI specifications. It allows developers to generate API documentation and client libraries based on OpenAPI definitions. However, this package has been compromised, making it a significant security risk for any application that utilizes it.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded in version 0.7.4 of the @silgi/openapi package, which is part of the Sha1-Hulud: The Second Coming NPM worm. This malware is capable of stealing tokens and credentials, publishing them to GitHub, and propagating itself to other NPM packages owned by the user. Additionally, it may establish persistence through GitHub actions and could potentially destroy the user's home directory. Any system running this package should be considered fully compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @silgi/openapi
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 workaround, users should uninstall the @silgi/openapi package using the command: npm uninstall @silgi/openapi. Additionally, ensure to monitor your systems for any unauthorized access or changes.
Conclusion
The @silgi/openapi package has been compromised, posing a severe security risk to any systems using it. Immediate action is required to remove the package and secure any sensitive information. Users are encouraged to utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for @silgi/openapi →
FAQ
It is a Node.js library used for generating API documentation and client libraries based on OpenAPI specifications.
The malicious code can steal sensitive information like tokens and credentials, and may also compromise other NPM packages you own.
Immediately uninstall the package and rotate any secrets or keys stored on the affected system.
Yes, you can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
Vulert is a tool that monitors and alerts in real-time for open-source vulnerabilities in your software using just the package-lock.json file.