CVE-2024-8372
Medium · 4.3AngularJS allows attackers to bypass common image source restrictions
CVSS
4.3
EPSS
0.6%
Published
Sep 9, 2024
CISA due date
—
Cloudanix analysis
A flaw in an outdated web framework lets attackers trick websites into showing fake or harmful images and content to users.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Web Framework
- Class
- Improper Input Validation
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
Improper sanitization of the srcset attribute value allows bypassing image source restrictions, enabling content spoofing in affected AngularJS applications.
Why it matters to the business
Attackers can inject misleading or malicious content into web applications, eroding user trust and potentially facilitating phishing or misinformation without requiring updates due to end-of-life status.
How an attack unfolds
An attacker identifies a vulnerable AngularJS application and supplies a crafted srcset attribute value that evades sanitization checks, resulting in the display of unauthorized content sources.
How to fix it
Migrate away from AngularJS to a supported framework such as Angular as the project is end-of-life and receives no patches.
How to confirm the fix worked
Audit application dependencies for AngularJS versions 1.3.0-rc.4 or later and review code handling srcset attributes for sanitization logic.
Typical attack path
- Identify web application using vulnerable AngularJS version
- Craft malicious srcset attribute payload
- Inject payload into input that populates srcset
- Trigger rendering to bypass restrictions and spoof content
How to detect it
Review web application logs for unusual srcset attribute values or unexpected image sources; inspect client-side code for attribute handling.
What your security team should do
- Prioritize migration from AngularJS due to lack of support
- Implement additional input sanitization layers if migration is delayed
- Monitor for content spoofing attempts in application logs
The record
Improper sanitization of the value of the `[srcset]` attribute in AngularJS allows attackers to bypass common image source restrictions, which can also lead to a form of Content Spoofing https://owasp.org/www-community/attacks/Content_Spoofing . This issue affects AngularJS versions 1.3.0-rc.4 and greater. Note: The AngularJS project is End-of-Life and will not receive any updates to address this issue. For more information see here https://docs.angularjs.org/misc/version-support-status .
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | angular | 1.3.0-rc.4 | No fix |
| Chainguard | solr | 0 | 9.8.1-r0 |
| Chainguard | solr-oci-compat | 0 | 9.8.1-r0 |
| Debian:11 | angular.js | 0 | No fix |
| Debian:12 | angular.js | 0 | No fix |
| Debian:13 | angular.js | 0 | No fix |
| Ubuntu:16.04:LTS | angular.js | 0 | No fix |
| Ubuntu:18.04:LTS | angular.js | 0 | No fix |
| Ubuntu:20.04:LTS | angular.js | 0 | No fix |
| Ubuntu:22.04:LTS | angular.js | 0 | No fix |
| Ubuntu:22.04:LTS | angular.js | 0 | 1.8.2-2ubuntu0.1 |
| Ubuntu:24.04:LTS | angular.js | 0 | No fix |
| Ubuntu:24.04:LTS | angular.js | 0 | 1.8.3-1ubuntu0.24.04.1 |
| Ubuntu:24.10 | angular.js | 0 | No fix |
| Ubuntu:25.04 | angular.js | 0 | No fix |
| Ubuntu:25.10 | angular.js | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | angular.js | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | angular.js | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | angular.js | 0 | 1.5.10-1ubuntu0.1~esm1 |
| Ubuntu:Pro:20.04:LTS | angular.js | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | angular.js | 0 | 1.7.9-1ubuntu0.1~esm1 |
| Wolfi | solr | 0 | 9.8.1-r0 |
| Wolfi | solr-oci-compat | 0 | 9.8.1-r0 |
Related vulnerabilities
- CVE-2024-8373 AngularJS allows attackers to bypass common image source restrictions Also affects angular
- CVE-2022-25869 All versions of package angular are vulnerable to Cross-site Scripting (XSS) due to… Also affects angular
- CVE-2026-24281 Hostname verification in Apache ZooKeeper ZKTrustManager falls back to reverse DNS (PTR)… Also affects solr
- CVE-2026-24308 Improper handling of configuration values in ZKConfig in Apache ZooKeeper 3.8.5 and 3.9.4… Also affects solr
- CVE-2026-1605 In Eclipse Jetty, versions 12.0.0-12.0.31 and 12.1.0-12.0.5, class GzipHandler exposes a… Also affects solr
- CVE-2025-11143 The Jetty URI parser has some key differences to other common parsers when evaluating… Also affects solr
- CVE-2026-22022 Apache Solr: Unauthorized bypass of certain "predefined permission" rules in the… Also affects solr
- CVE-2026-22444 Apache Solr: Insufficient file-access checking in standalone core-creation requests Also affects solr