Cyber Security News

Critical XSS Vulnerability in Angular i18n Enables Malicious Code Execution

A high-severity Cross-Site Scripting (XSS) vulnerability, designated as CVE-2026-27970, has been discovered in Angular’s internationalization (i18n) pipeline.

The vulnerability allows attackers to execute malicious JavaScript if they can compromise an application’s translation files.

Angular’s i18n process allows developers to extract application messages, translate them into different languages, and merge them back into the code.

This process often involves third-party translation services. The vulnerability lies in how Angular handles International Components for Unicode (ICU) messages.

HTML embedded within translated content was not adequately sanitized, creating an opening for arbitrary JavaScript execution.

DetailsInformation
CVE IDCVE-2026-27970
VulnerabilityCross-Site Scripting (XSS) in Angular i18n
SeverityHigh
Affected Package@angular/core
WeaknessCWE-79
CVSS VectorCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Exploitation Prerequisites

Unlike typical XSS vulnerabilities that arbitrary users can exploit, CVE-2026-27970 requires a specific sequence of conditions:

The attacker must first compromise the application’s translation file (e.g., .xliff or .xtb). The targeted application must actively use Angular i18n and render at least one ICU message.

The application must lack strong defenses, such as a strong Content Security Policy (CSP) or Trusted Types.

If an attacker successfully manipulates the translation file and the malicious code is rendered into the application, they can execute JavaScript in the application’s origin.

This can result in severe consequences, including:

Threat TypeDescription
Credential ExfiltrationAttackers steal sensitive data (page memory, LocalStorage, IndexedDB, cookies) and send it to an external server.
Page VandalismAttackers modify webpage content or behavior to deceive users or disrupt functionality.

Affected Versions and Patches

The vulnerability affects several versions of the @angular/core package.

ComponentVersion Range
@angular/core>= 21.2.0-next.0 to <= 21.2.0-rc.0
@angular/core>= 21.0.0-next.0 to <= 21.1.5
@angular/core>= 20.0.0-next.0 to <= 20.3.16
@angular/core>= 19.0.0-next.0 to <= 19.2.18
@angular/core<= 18.2.14

Developers are strongly urged to update to the patched versions immediately to secure their applications.

Angular Developers on GitHub have released the necessary fixes and guidance for affected projects.

Organizations that cannot immediately apply the patches should implement the following workarounds to reduce risk:

Security MeasureDescription
Verify TranslationsReview and validate all third-party translated content before integrating into the Angular application.
Enable Strict CSPImplement a strict Content Security Policy to block unauthorized JavaScript execution.
Enforce Trusted TypesApply Trusted Types and proper HTML sanitization to prevent DOM-based XSS.

Developers are encouraged to review their Angular i18n implementations and apply the necessary updates or workarounds to protect against potential exploitation of CVE-2026-27970.

Follow us on Google News, LinkedIn, and X for daily cybersecurity updates. Contact us to feature your stories.

Abinaya

Abi is a Security Editor and fellow reporter with Cyber Security News. She is covering various cyber security incidents happening in the Cyber Space.

Recent Posts

Hackers used Compromised ConnectWise Backup Credentials to Hack 173 Microsoft 365 Accounts

Hackers used a stolen ConnectWise Cloud Backup credential to sign in to 173 Microsoft 365…

2 hours ago

Google Fixes 10 Chrome Vulnerabilities, Including Memory Corruption Flaw Found With Claude AI

Google released a Chrome Stable security update fixing 10 vulnerabilities across Windows, Mac, and Linux,…

7 hours ago

Hackers Exploit Critical Collabora Online Flaw to Backdoor Nextcloud Servers

Hackers are exploiting a critical flaw in the Collabora Online Built-in CODE Server app for…

7 hours ago

OpenAI Confirms Its AI Model Hacked Government Website While Counting Hospital Beds

OpenAI has confirmed that an internal AI model hacked an unnamed government statistics website while…

8 hours ago

Hackers Use New ROMULUS ClickFix Platform to Deliver Malware and Evade Security Detection

Hackers are using a newly identified platform called ROMULUS to deliver malware through ClickFix traps,…

22 hours ago

New YuanKong Android RAT Hijacks Phones to Steal Banking PINs and Passwords

A newly analyzed Android remote-access Trojan called YuanKong can watch and control a victim’s phone,…

22 hours ago