REDHAT-BUG-2418155: XSS

Published Dec 1, 2025
·
Updated

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

1 affected component
Google Angular<21.0.2, <20.3.15, <19.2.17

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 21.0.2
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 20.3.15
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 19.2.17

Event History

Dec 1, 2025
Data Sourced
via Red Hat·11:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203