
šØ Angular XSS Vulnerability Puts Thousands of Web Apps at Risk
A high-severity vulnerability in Angularāone of the most widely used web frameworksāhas been identified, exposing thousands of web applications to Cross-Site Scripting (XSS) attacks.
Tracked as CVE-2026-32635, this flaw allows attackers to bypass Angularās built-in security protections and inject malicious scripts directly into web applications.
And hereās the kicker⦠it doesnāt require some exotic exploit chain.
Just a subtle misuse of a feature developers rely on every day.
ā ļø The Problem: A Hidden Blind Spot in Angular
Angular is designed to automatically sanitize inputs, protecting applications from malicious code execution.
But this vulnerability creates a dangerous loophole.
When developers combine:
sensitive HTML attributes (like href, src, action)
with Angularās internationalization (i18n) features
ā¦the frameworkās sanitization can be completely bypassed.
In simple terms:
š Add an i18n-* attribute to certain elements
š Bind it to untrusted input
š Angular skips security checks
Game over.
šÆ What Attackers Can Do
Once exploited, attackers can execute malicious JavaScript inside a userās browserāunder your domain.
Thatās not just annoying. Thatās full trust abuse.
Hereās what that opens up:
š§ Session Hijacking
Steal cookies and authentication tokens ā take over user accounts.
š¤ Data Exfiltration
Capture sensitive data and send it to attacker-controlled servers.
š Unauthorized Actions
Trigger actions as the victim (payments, changes, approvals⦠you name it).
š§Ø Why This Is Dangerous
This vulnerability has:
Low attack complexity
Network-based exploitation
High impact on user trust and data security
And it targets attributes developers use constantly:
href
src
action
background
data
formaction
So yeah⦠this isnāt edge-case territory. This is core app behavior.
š¦ Affected Versions
The vulnerability impacts:
@angular/core
@angular/compiler
Across versions:
š 17.0.0 ā 22.0.0-next.2
ā Patched Versions
Upgrade immediately to:
22.0.0-next.3
21.2.4
20.3.18
19.2.20
ā Still Vulnerable
Angular 17 & 18 (no patch yet)
If youāre running those⦠youāre in mitigation mode, not comfort mode.
š” How to Protect Your Applications
If you can patchādo it now. No debate.
If you canāt, hereās how you stay out of trouble:
š« Block Untrusted Input
Never bind user-controlled data directly to sensitive attributes.
That includes:
user input
database content
API responses
URL parameters
š§¹ Remove i18n from Risky Attributes
If an attribute uses untrusted data, do not mark it for internationalization.
That combo is the vulnerability trigger.
š Enforce Manual Sanitization
Use Angularās DomSanitizer explicitly.
Donāt rely on automatic protectionāitās clearly not bulletproof here.
šÆ Security Takeaway
Frameworks are supposed to make you safer.
But sometimes⦠the features meant to help you scale are the same ones that quietly open the door.
This isnāt just an Angular issue.
Itās a reminder:
š Assume nothing is automatically secure
š Validate everythingāeven āsafeā framework behavior
Because attackers donāt break systems the loud way anymore.
They slip through the tiny cracks you didnāt think mattered.
