Content Spoofing Vulnerability in Angular.js - DEBIAN-CVE-2024-8373
Summary
DEBIAN-CVE-2024-8373: Improper sanitization of the value of the [srcset] attribute in HTML elements in AngularJS allows attackers to bypass common image source restrictions, which can also lead to a form of Content Spoofing https://owasp.org/... Affects angular.js versions < 1.8.3-1+deb12u1~deb11u1. Fixed in 1.8.3-1+deb12u1~deb11u1. 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.js is a widely-used JavaScript framework designed for building dynamic web applications. It provides a robust structure for developing single-page applications, enabling developers to create rich user interfaces with ease. However, Angular.js has reached its End-of-Life status, meaning it will no longer receive updates or security patches, leaving existing vulnerabilities unaddressed.
Vulnerability Detail
The vulnerability identified as DEBIAN-CVE-2024-8373 arises from improper sanitization of the 'srcset' attribute in <source> HTML elements within AngularJS. This flaw allows attackers to bypass standard image source restrictions, potentially leading to content spoofing attacks. Such attacks can mislead users by displaying deceptive content, undermining the integrity of the web application. This issue affects all versions of AngularJS, and since the project is no longer maintained, it poses a significant risk to applications relying on this framework.
How To Fix
Minimum fixed version
1.8.3-1+deb12u1~deb11u1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade angular.js
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary measure, consider implementing strict content security policies (CSP) to mitigate the risk of content spoofing. This can help limit the sources from which images can be loaded, reducing the attack surface until a proper fix is applied.
Conclusion
The DEBIAN-CVE-2024-8373 vulnerability in Angular.js poses a significant risk due to improper sanitization of the 'srcset' attribute. With Angular.js being End-of-Life, it is crucial for developers to update to the latest patched versions or implement workarounds to protect their applications from potential content spoofing attacks.
See every vulnerability recorded for angular.js →
FAQ
The vulnerability allows attackers to bypass image source restrictions, leading to potential content spoofing.
All versions of Angular.js are affected by this vulnerability.
Yes, patched versions are available for Debian 11, 13, and 14.
Implement strict content security policies as a temporary workaround to mitigate risks.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
References
Related vulnerabilities
Recent vulnerabilities recorded for angular.js.