---
id: CVE-2026-11998
title: >-
  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 …
summary: >-
  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 …
severity: high
cvss: 7.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L'
cwe:
  - CWE-791
  - CWE-79
published: '2026-06-24'
updated: '2026-07-03'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-11998'
references:
  - url: 'https://codepen.io/herodevs/pen/JobQdmz/5b3896f56fab66f20cd25e698cf3faa8'
    label: 36c7be3b-2937-45df-85ea-ca7133ea542c
  - url: 'https://www.herodevs.com/vulnerability-directory/cve-2026-11998'
    label: 36c7be3b-2937-45df-85ea-ca7133ea542c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-11998'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2492579'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-11998.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://www.herodevs.com/vulnerability-directory/cve-2026-11998?nes-for-angularjs
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00502
epssPercentile: 0.40291
ingestedAt: '2026-07-03T16:05:55.641Z'
---

## Overview

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 .

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
