Malicious Code Detected in angular-dynamic-html Package
Summary
MAL-2025-14527: Malicious code in angular-dynamic-html (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 angular-dynamic-html package is an npm library designed to facilitate dynamic HTML rendering in Angular applications. It allows developers to bind HTML content dynamically, enhancing the flexibility and interactivity of web applications. However, this package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the angular-dynamic-html package. This code can potentially compromise the security of applications, leading to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall angular-dynamic-html
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 avoid using the angular-dynamic-html package and implement alternative methods for dynamic HTML rendering in your Angular application. Consider using Angular's built-in features or other trusted libraries that do not have known vulnerabilities.
Conclusion
The discovery of malicious code in the angular-dynamic-html package highlights the importance of regularly auditing dependencies in software projects. Developers are urged to remove this package and seek secure alternatives to protect their applications from potential threats.
See every vulnerability recorded for angular-dynamic-html →
FAQ
The angular-dynamic-html package is an npm library that allows developers to dynamically render HTML content in Angular applications.
The specific nature of the malicious code has not been disclosed, but it poses significant security risks, including potential data breaches.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can identify if your application is affected by this vulnerability.
The best course of action is to remove the package entirely. There are no effective workarounds that can guarantee security while using the compromised package.
Detailed information about this vulnerability can be found in the official GitHub repository for malicious packages.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.