Listen to this Post
The vulnerability exists in the Angular Template Compiler due to an incomplete internal security schema. This schema fails to properly classify certain URL-holding attributes as requiring strict URL security contexts. Specifically, attributes that can contain `javascript:` URLs, such as `xlink:href` in SVG or `math|href` in MathML, are not sanitized correctly. When template binding assigns user-controlled, untrusted data to these attributes, the compiler incorrectly falls back to a non-sanitizing context. Additionally, SVG animation elements like `
Platform: Angular Template Compiler
Version: Not specified
Vulnerability: Stored XSS
Severity: Critical
date: Not specified
Prediction: Patch date unknown
What Undercode Say:
Analytics
Check Angular version for vulnerability assessment ng version Example of vulnerable template binding code [attr.xlink:href]="userControlledURL" <animate [bash]="'href'" [bash]="userControlledURL">
How Exploit:
Attackers inject malicious `javascript:` URLs via user-controlled data bound to vulnerable SVG/MathML attributes or SVG animation attributeName. The payload executes upon user interaction or animation trigger.
Protection from this CVE
Upgrade Angular immediately. Avoid binding untrusted data to vulnerable attributes. Implement strict Content Security Policy.
Impact:
Session hijacking, data exfiltration, unauthorized user actions.
🎯Let’s Practice Exploiting & Learn Patching For Free:
Sources:
Reported By: github.com
Extra Source Hub:
Undercode

