Angular's deprecated package has a Cross-Site Scripting issue
Published 24 Jun 2026 · Updated 17 Jul 2026
Affected package
- Affected
- >=1.2.0-rc.3 <=1.8.3
- Fixed in
- No fix released
Details
A flaw in AngularJS' Strict Contextual Escaping (SCE) logic allows bypassing certain SCE policies for resource URLs and can lead to arbitrary JavaScript execution within the context of the victim's browser session.
SCE's purpose is to ensure that only trusted or safe values are used in certain security-sensitive contexts, such as resource URLs, including URLs that define executable JavaScript scripts, '<iframe>' documents, route templates, etc. A flaw in the logic that tries to match entire URLs against regular expression matchers can result in partial matches for certain types of regular expressions, effectively bypassing the policies and allowing the use of unsafe values as resource URLs.
This issue affects AngularJS versions greater than or equal to 1.2.0-rc.3.
Note: The AngularJS project was already End-of-Life when this CVE was published and will not receive any updates to address this issue. For more information see the End-of-Life announcement https://docs.angularjs.org/misc/version-support-status .
Is GHSA-7x27-g8rg-x87w in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected angular, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-11998
- Linkaccess.redhat.com/security/cve/CVE-2026-11998
- Linkbugzilla.redhat.com/show_bug.cgi?id=2492579
- Linkcodepen.io/herodevs/pen/JobQdmz/5b3896f56fab66f20cd25e698cf3faa8
- Packagegithub.com/angular/angular.js
- Linksecurity.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-11998.json
- Linkwww.herodevs.com/vulnerability-directory/cve-2026-11998
- Linkwww.herodevs.com/vulnerability-directory/cve-2026-11998?nes-for-angularjs
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.