Malicious Code Detected in angularjs-in-view Package
Summary
MAL-2025-14537: Malicious code in angularjs-in-view (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
The angularjs-in-view package is a JavaScript library designed to facilitate the detection of elements entering or exiting the viewport in web applications. It is commonly used in conjunction with AngularJS to enhance user experience by triggering events based on visibility. However, this package has been found to contain malicious code, posing a significant risk to applications that utilize it.
Vulnerability Detail
The vulnerability in the angularjs-in-view package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code may allow unauthorized access to sensitive data, execute arbitrary commands, or lead to further exploitation of the application. The issue is particularly concerning as it affects all versions of the package starting from its introduction, making it critical for developers to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall angularjs-in-view
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 prevent the use of the angularjs-in-view package by removing it from your dependencies and replacing it with a different library that provides similar functionality without the associated risks.
Conclusion
The discovery of malicious code in the angularjs-in-view package poses a significant threat to applications that utilize it. Developers are urged to take immediate action by removing the package and seeking secure alternatives to protect their applications from potential exploitation.
See every vulnerability recorded for angularjs-in-view →
FAQ
It is a JavaScript library used to detect when elements enter or exit the viewport in web applications.
The malicious code can potentially allow unauthorized access to sensitive data or execute arbitrary commands.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
You should remove the angularjs-in-view package from your project and consider using a secure alternative.
Currently, there is no patched version available, and it is recommended to remove the package until a secure alternative is found.