Malicious Code Detected in angular-trackjs: A Critical Vulnerability
Summary
MAL-2025-191952: Malicious code in angular-trackjs (npm). Affected versions are not published. 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
angular-trackjs is an npm package designed to integrate TrackJS error tracking into Angular applications. It provides developers with tools to monitor and report errors occurring in their applications, enhancing debugging and improving user experience. However, the package has been found to contain malicious code, posing significant security risks to applications utilizing it.
Vulnerability Detail
The vulnerability originates from the discovery of malicious code embedded within the angular-trackjs package. This code can potentially compromise the security of applications that depend on it, leading to unauthorized access, data breaches, or other malicious activities. The specific technical details of the malicious code have not been disclosed, but its presence indicates a severe risk to any application using this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall angular-trackjs
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 angular-trackjs package from your project until a secure version is released. You can do this by executing: 'npm uninstall angular-trackjs'. Alternatively, you may explore other error tracking solutions that do not pose security risks.
Conclusion
The discovery of malicious code in the angular-trackjs package poses a serious threat to applications using it. It is crucial for developers to take immediate action by updating or removing the package to safeguard their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for angular-trackjs →
FAQ
angular-trackjs is an npm package that integrates TrackJS error tracking into Angular applications, helping developers monitor and report errors.
The malicious code can compromise application security, potentially leading to unauthorized access and data breaches.
You can use Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
Consider removing the angular-trackjs package from your project as a temporary measure until a secure version is available.
The vulnerability was reported by Amazon Inspector, which identified the malicious code in the angular-trackjs package.