CVE-2026-27970: Angular i18n Cross-Site Scripting Vulnerability

@angular/core Updated 28 Feb 2026

Summary

27/02/2026
Yes i
High
6.1

CVE-2026-27970: Angular i18n vulnerable to Cross-Site Scripting. Affects @angular/core across 5 version ranges.

< 18.2.14 >= 19.0.0-next.0, < 19.2.19 >= 20.0.0-next.0, < 20.3.17 >= 21.0.0-next.0, < 21.1.6 >= 21.2.0-next.0, < 21.2.0

Fixed in 5 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Angular is a popular open-source web application framework maintained by Google, designed for building dynamic single-page applications. It provides a robust set of tools for developers, including a powerful internationalization (i18n) pipeline that allows applications to support multiple languages. However, a vulnerability has been identified in the i18n pipeline that can lead to Cross-Site Scripting (XSS) attacks if not properly managed.

Vulnerability Detail

A Cross-Site Scripting (XSS) vulnerability exists in the Angular internationalization (i18n) pipeline, specifically within ICU messages. The vulnerability arises when HTML from translated content is not adequately sanitized, allowing for the execution of arbitrary JavaScript. This issue can be exploited if an attacker compromises the translation files (e.g., xliff, xtb) used by the application. The consequences of this vulnerability can include credential exfiltration, where sensitive user data is stolen, and page vandalism, where the application behaves unexpectedly due to malicious scripts.

How To Fix

Latest published version: 22.2.3 as of 23 Oct 2026

npm install @angular/core@22.2.3

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 18.2.14 18.2.14
    npm install @angular/core@18.2.14
  • >= 19.0.0-next.0, < 19.2.19 19.2.19
    npm install @angular/core@19.2.19
  • >= 20.0.0-next.0, < 20.3.17 20.3.17
    npm install @angular/core@20.3.17
  • >= 21.0.0-next.0, < 21.1.6 21.1.6
    npm install @angular/core@21.1.6
  • >= 21.2.0-next.0, < 21.2.0 21.2.0
    npm install @angular/core@21.2.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

Until the patch is applied, developers should consider the following workarounds: 1. Review and verify translated content received from untrusted third parties before incorporating it into the Angular application. 2. Enable strict Content Security Policy (CSP) controls to block unauthorized JavaScript from executing on the page. 3. Enable Trusted Types to enforce proper HTML sanitization.

Conclusion

The Angular i18n vulnerability (CVE-2026-27970) poses significant risks due to its potential for XSS attacks. It is crucial for developers to update their Angular packages to the latest patched versions and implement recommended workarounds to safeguard their applications against exploitation.

See every vulnerability recorded for @angular/core →

Share this vulnerability

FAQ

Cross-Site Scripting (XSS) is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.

An attacker must first compromise the translation files used by the application. Once the files are compromised, they can inject malicious content that gets executed in the user's browser.

The impacts can include credential theft, unauthorized access to sensitive data, and manipulation of the application's behavior.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

If you cannot update the package right away, implement the suggested workarounds to mitigate the risk until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for @angular/core.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 22.2.3 as of 23 Oct 2026

npm install @angular/core@22.2.3

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 18.2.14 18.2.14
    npm install @angular/core@18.2.14
  • >= 19.0.0-next.0, < 19.2.19 19.2.19
    npm install @angular/core@19.2.19
  • >= 20.0.0-next.0, < 20.3.17 20.3.17
    npm install @angular/core@20.3.17
  • >= 21.0.0-next.0, < 21.1.6 21.1.6
    npm install @angular/core@21.1.6
  • >= 21.2.0-next.0, < 21.2.0 21.2.0
    npm install @angular/core@21.2.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback