Cross-site Scripting Vulnerability in Angular.js Packages

angular.js Updated 02 Oct 2025

Summary

15/07/2022
N/A
No i
Unrated
Not published

DEBIAN-CVE-2022-25869: All versions of the package angular; all versions of the package angularjs.core; all versions of the package angularjs are vulnerable to Cross-site Scripting (XSS) due to insecure page caching in the Internet Explorer br... 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Angular.js is a widely-used JavaScript framework that allows developers to build dynamic web applications. It provides features such as two-way data binding, dependency injection, and a modular architecture, making it a popular choice for single-page applications. However, all versions of Angular.js, along with its related packages angularjs.core and angularjs, are vulnerable to a Cross-site Scripting (XSS) issue due to insecure page caching in Internet Explorer.

Vulnerability Detail

The vulnerability arises from the way Angular.js handles page caching in Internet Explorer, which allows for the interpolation of <textarea> elements. This can lead to XSS attacks, where an attacker can inject malicious scripts into web pages viewed by other users. The implications of this vulnerability are significant, as it can compromise user data, session tokens, and potentially allow attackers to perform actions on behalf of users.

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

As a temporary workaround, consider disabling caching in Internet Explorer for your web application. This can be done by modifying the HTTP headers to include 'Cache-Control: no-store' and 'Pragma: no-cache'. This will prevent the browser from caching pages and mitigate the risk of XSS attacks until a patch is applied.

Conclusion

The Cross-site Scripting vulnerability in Angular.js poses a significant risk to web applications using this framework. It is crucial for developers to update their packages to the latest versions and consider implementing workarounds to protect their users until a fix is applied.

See every vulnerability recorded for angular.js →

Share this vulnerability

FAQ

XSS is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users, potentially compromising user data and session integrity.

All versions of Angular.js, angularjs.core, and angularjs are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If an immediate update is not possible, consider implementing the suggested workaround by disabling caching in Internet Explorer.

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