Cross-Site Scripting Vulnerability in Angular.js - CVE-2026-27970

angular.js Updated 09 Mar 2026

Summary

26/02/2026
N/A
No i
Medium
6.1

DEBIAN-CVE-2026-27970: Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Affects angular.js versions 1.8.2-2 – 1.8.3-3. No fix is published. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Angular.js is a robust development platform used for building mobile and desktop web applications with TypeScript, JavaScript, and other languages. It is widely adopted for its powerful features, including two-way data binding, dependency injection, and modular development. However, certain versions of Angular.js are susceptible to a cross-site scripting (XSS) vulnerability that can compromise application security.

Vulnerability Detail

The vulnerability arises from improper sanitization of HTML content in the Angular internationalization (i18n) pipeline, specifically within ICU messages. When translations are processed, if an attacker compromises the translation files (such as xliff or xtb), they can inject malicious JavaScript. This can lead to arbitrary code execution in the application context, potentially resulting in credential theft or page vandalism. The exploitation requires the application to use Angular i18n, render ICU messages, and lack adequate content security policies.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Until the patch is applied, developers should review and verify translated content received from untrusted sources before integrating it into the Angular application. Additionally, enabling strict Content Security Policy (CSP) controls can help block unauthorized JavaScript execution. Here’s an example of a strict CSP header: Content-Security-Policy: default-src 'self'; script-src 'self';

Conclusion

The CVE-2026-27970 vulnerability poses a significant risk to applications using affected versions of Angular.js due to improper handling of translated content. It is crucial for developers to update to the patched versions and implement recommended workarounds to safeguard their applications.

See every vulnerability recorded for angular.js →

Share this vulnerability

FAQ

CVE-2026-27970 is a cross-site scripting vulnerability found in certain versions of Angular.js that allows attackers to execute arbitrary JavaScript through compromised translation files.

Versions prior to 21.2.0, 21.1.16, 20.3.17, and 19.2.19 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to credential exfiltration, unauthorized actions on behalf of users, or defacement of the application.

If an immediate update is not possible, ensure to review and sanitize any untrusted translation content and implement strict CSP controls to mitigate risks.

Related vulnerabilities

Recent vulnerabilities recorded for angular.js.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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