Malicious Code Vulnerability in @ads-core/types Package
Summary
MAL-2025-192700: Malicious code in @ads-core/types (npm). Affects @ads-core/types versions 11.7.7 – 11.7.9. 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 @ads-core/types package is a library used in JavaScript applications, primarily for defining and managing types in a structured manner. It is commonly utilized in projects that require type safety and improved code maintainability. However, recent findings have revealed that certain versions of this package contain malicious code, posing significant security risks to applications that rely on it.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code in specific versions of the @ads-core/types package, particularly versions 11.7.7 and 11.7.9. This malicious code can lead to unauthorized access, data breaches, and potential exploitation of the affected applications. The origin of this vulnerability is linked to the package being compromised, which can have severe ramifications for developers and users alike, including loss of sensitive information and trust in the software supply chain.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @ads-core/types
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 remove the affected versions of the @ads-core/types package from your project and avoid using any functionality that relies on it until a secure version is confirmed. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The discovery of malicious code in the @ads-core/types package highlights the importance of vigilance in managing open-source dependencies. By updating to secure versions and utilizing tools like Vulert, developers can protect their applications from potential threats.
See every vulnerability recorded for @ads-core/types →
FAQ
The affected versions are 11.7.7 and 11.7.9.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If immediate updates are not possible, consider removing the package or using alternative libraries until a secure version is available.
Using the compromised package can lead to unauthorized access, data breaches, and exploitation of your application, potentially harming users and damaging your reputation.
Regularly monitor your dependencies using tools like Vulert, and keep your packages updated to the latest secure versions to minimize the risk of vulnerabilities.