Malicious Code Detected in tidb-lightning-web: Security Risk Alert
Summary
MAL-2025-6771: Malicious code in tidb-lightning-web (npm). Affects tidb-lightning-web versions >= 4.0.6. 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 'tidb-lightning-web' package is a tool designed for data migration and loading into TiDB databases. It facilitates the efficient transfer of large datasets, ensuring that data is accurately and quickly integrated into the database environment. However, this package has been identified as having a vulnerability that allows it to communicate with a domain associated with malicious activities, posing a significant security risk to users.
Vulnerability Detail
The vulnerability in the 'tidb-lightning-web' package originates from version 4.0.6, where it has been found to establish connections with a domain linked to malicious activities. This could lead to unauthorized data access, data breaches, or the execution of harmful code within the user's environment. The technical implications of this vulnerability are severe, as it compromises the integrity and security of the data being handled by the package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tidb-lightning-web
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 measure, users are advised to avoid using the 'tidb-lightning-web' package until the vulnerability is addressed. If immediate data migration is necessary, consider using alternative packages that do not have known vulnerabilities.
Conclusion
The 'tidb-lightning-web' package has a critical vulnerability that allows it to connect to a malicious domain, which can lead to serious security issues. Users are strongly advised to update the package to the latest version to mitigate risks. For real-time monitoring of open-source vulnerabilities, consider using Vulert, which can alert you to potential threats without requiring code access.
See every vulnerability recorded for tidb-lightning-web →
FAQ
It is a tool for migrating and loading data into TiDB databases, designed for efficient data transfer.
The vulnerability allows the package to communicate with a domain associated with malicious activities, posing security risks.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
Consider using alternative packages for data migration until the vulnerability is resolved.
The vulnerability was identified by Amazon Inspector, a security assessment service.