Malicious Code Detected in tiktok-internal Package - Security Risk Alert
Summary
MAL-2025-6860: Malicious code in tiktok-internal (npm). Affects tiktok-internal versions >= 16.0.0. 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 tiktok-internal package is an npm library that is utilized for internal TikTok functionalities. It is designed to facilitate various operations within the TikTok ecosystem. However, the 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 and their applications.
Vulnerability Detail
The vulnerability in the tiktok-internal package originates from its ability to connect to a domain linked to malicious activities. This could potentially lead to data breaches, unauthorized access, or the execution of harmful code within applications that utilize this package. The issue was introduced in version 16.0.0, and it is crucial for developers to be aware of the risks associated with using this package in their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tiktok-internal
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 tiktok-internal package from your project until a secure version is released. You can uninstall the package using the following command: npm uninstall tiktok-internal.
Conclusion
The tiktok-internal package has been identified with a vulnerability that allows it to communicate with a malicious domain. It is essential for developers to take immediate action by updating or removing the package to safeguard their applications. Utilizing tools like Vulert can help monitor for such vulnerabilities effectively.
See every vulnerability recorded for tiktok-internal →
FAQ
The tiktok-internal package is an npm library used for internal functionalities within the TikTok platform.
The package communicates with a domain that is known for malicious activities, which could compromise the security of applications using it.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
As of now, there is no specific patch mentioned. It is advisable to keep an eye on updates from the package maintainers.
If immediate updates are not possible, consider removing the package as a temporary measure to protect your application.