Content spoofing via crafted srcset candidate list
Published Sep 9, 2024 · Updated Nov 3, 2025
Improper srcset sanitization in Google AngularJS 1.3.0-rc.4 and later allows remote attackers to display images from blocked sources. The ngSrcset, ngAttrSrcset, and ngPropSrcset logic accepts a crafted candidate list containing an invalid descriptor followed by a URL outside the configured trusted-source pattern. Exploitation requires attacker-controlled data to reach one of these directives and results in arbitrary external image display or content spoofing.
Summary
What happened
Improper srcset sanitization in Google AngularJS 1.3.0-rc.4 and later allows remote attackers to display images from blocked sources. The ngSrcset, ngAttrSrcset, and ngPropSrcset logic accepts a crafted candidate list containing an invalid descriptor followed by a URL outside the configured trusted-source pattern. Exploitation requires attacker-controlled data to reach one of these directives and results in arbitrary external image display or content spoofing.
The record
- CVE
- CVE-2024-8372
- Published
- Sep 9, 2024
- Updated
- Nov 3, 2025
- Vendor
- Product
- AngularJS
- Classifications
- CWE-1289, CAPEC-554, CAPEC-148, T1036
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 9, 2024CVE publishedPublication date reported by the CVE source.
- Nov 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>=1.3.0-rc.4
- Affected versionversion=1.3.0-rc.4 <*
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- ngSrcset sanitization bypass vulnerability PoCproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo