REDHAT-BUG-2418155: XSS
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 21.0.2, 20.3.15, and 19.2.17, A Stored Cross-Site Scripting (XSS) vulnerability has been identified in the Angular Template Compiler. It occurs because the compiler's internal security schema is incomplete, allowing attackers to bypass Angular's built-in security sanitization. Specifically, the schema fails to classify certain URL-holding attributes (e.g., those that could contain javascript: URLs) as requiring strict URL security, enabling the injection of malicious scripts. This vulnerability is fixed in 21.0.2, 20.3.15, and 19.2.17.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 21.0.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 20.3.15 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 19.2.17
Event History
Frequently Asked Questions
Which Angular versions need to be updated?
The issue is fixed in Angular 21.0.2, 20.3.15, and 19.2.17. Versions earlier than those releases in the respective release lines are affected.
What conditions are required for exploitation?
An attacker must be able to cause a malicious value to be used in a URL-holding template attribute that the compiler does not classify as requiring strict URL security. This can allow a javascript: URL to bypass Angular's built-in sanitization and execute stored script content.
What can be done if an immediate upgrade is not possible?
The provided information does not identify a supported workaround. Reduce exposure by preventing untrusted input from being stored or rendered in URL-holding template attributes until the applicable fixed Angular release can be deployed.