Critical Malicious Code Vulnerability in tanstack-shadcn-table Package
Summary
MAL-2025-191018: Malicious code in tanstack-shadcn-table (npm). Affects tanstack-shadcn-table versions 1.1.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 tanstack-shadcn-table package is an npm library designed for building tables in web applications. It offers features such as sorting, filtering, and pagination, making it a popular choice among developers for creating dynamic data displays. However, recent findings have revealed that this package contains malicious code, posing significant security risks to users who have it installed.
Vulnerability Detail
The vulnerability originates from the presence of embedded malicious code within the tanstack-shadcn-table 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 malicious nature of the code means that simply removing the package may not eliminate all traces of the compromise, as full control of the affected system may have been granted to an external entity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tanstack-shadcn-table
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 isolate the affected application from the internet and monitor for any unusual activity until the package is removed and the system is secured. Additionally, consider rotating all secrets and keys stored on the compromised machine from a secure, unaffected system.
Conclusion
The discovery of malicious code in the tanstack-shadcn-table package highlights the importance of vigilance in managing open-source dependencies. Users must act swiftly to remove the compromised package and secure their systems to prevent unauthorized access.
See every vulnerability recorded for tanstack-shadcn-table →
FAQ
Immediately uninstall the package using 'npm uninstall tanstack-shadcn-table' and rotate any sensitive information stored on the affected system.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
Keeping the package installed can lead to unauthorized access to your system, data breaches, and potential exploitation of sensitive information.
After removing the package, ensure to rotate all secrets and keys. It may also be necessary to perform a thorough security audit of the affected system.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, and keep your packages updated to the latest secure versions.