Critical Malicious Code Vulnerability in @wxi-dev/serverless-tsc-config Package
Summary
MAL-2025-191536: Malicious code in @wxi-dev/serverless-tsc-config (npm). Affects @wxi-dev/serverless-tsc-config versions 1.0.0 – 1.0.5. 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 @wxi-dev/serverless-tsc-config package is an npm library designed to provide configuration settings for TypeScript projects in serverless environments. It aims to simplify the setup and management of TypeScript configurations, making it easier for developers to integrate TypeScript into their serverless applications. However, this package has been identified as containing malicious code, posing significant security risks to any system that has it installed.
Vulnerability Detail
The vulnerability originates from the presence of embedded malicious code within the @wxi-dev/serverless-tsc-config package. This code can compromise any computer that has the package installed, potentially allowing unauthorized access to sensitive information such as secrets and keys. The ramifications of this vulnerability are severe, as it could lead to full control of the affected system by an external entity. Users are advised to treat any system running this package as fully compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @wxi-dev/serverless-tsc-config
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
There are no effective workarounds for this vulnerability other than removing the package and rotating any compromised secrets. Ensure that you do not run any applications that depend on this package until it has been completely removed.
Conclusion
The @wxi-dev/serverless-tsc-config package has been identified as containing malicious code, posing a significant security risk. Users must take immediate action to remove the package and secure their systems. Regular monitoring of dependencies using tools like Vulert can help prevent future vulnerabilities.
See every vulnerability recorded for @wxi-dev/serverless-tsc-config →
FAQ
Immediately remove the package and rotate all secrets and keys stored on the affected system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without requiring any signup.
Currently, there is no patched version available. The best course of action is to remove the package entirely.
Failure to address this vulnerability could lead to unauthorized access to sensitive information and complete control of your system by malicious actors.
It is advisable to review other packages from the same developer carefully and monitor them for any reported vulnerabilities before use.