7.6high
AngularJS XSS via SCE resource URL sanitization bypass
- Severity
- 7.6high CVSS:3.1 by HeroDevs
- Exploit likelihood
- 0.50% (higher than 36% of CVEs)
- Published
- Last changed
- Assigned by
- HeroDevs
- Also known as
- GHSA-7x27-g8rg-x87w
Description
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 .
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| angular | >=1.2.0-rc.3 | CVE List |
| firefox | Not specified | CVE List |
| gjs | Not specified | CVE List |
| grafana | Not specified | CVE List |
| thunderbird | Not specified | CVE List |
| mozjs60 | Not specified | CVE List |
| qpid-dispatch | Not specified | CVE List |
| quay/quay-rhel8 | Not specified | CVE List |
| quay/quay-rhel9 | Not specified | CVE List |
| angular (npm) | from 1.2.0-rc.3 up to 1.8.3 | GitHub Advisory Database |
All scores
| HeroDevs | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
| redhat-SADP | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
| GitHub | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
Classification
What each source says
CVE List
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 .
NVD (es)
Un fallo en la lógica de Strict Contextual Escaping (SCE) de AngularJS permite eludir ciertas políticas de SCE para URLs de recursos y puede conducir a la ejecución arbitraria de JavaScript dentro del contexto de la sesión del navegador de la víctima. El propósito de SCE es asegurar que solo se utilicen valores confiables o seguros en ciertos contextos sensibles a la seguridad, como URLs de recursos, incluyendo URLs que definen scripts JavaScript ejecutables, documentos ’[iframe_tag]’, plantillas de ruta, etc. Un fallo en la lógica que intenta hacer coincidir URLs completas con comparadores de expresiones regulares puede resultar en coincidencias parciales para ciertos tipos de expresiones regulares, eludiendo efectivamente las políticas y permitiendo el uso de valores no seguros como URLs de recursos. Este problema afecta a las versiones de AngularJS mayores o iguales a 1.2.0-rc.3. Nota: El proyecto AngularJS ya había llegado a su Fin de Vida Útil (End-of-Life) cuando se publicó este CVE y no recibirá ninguna actualización para abordar este problema. Para más información, consulte el anuncio de Fin de Vida Útil (End-of-Life) https://docs.angularjs.org/misc/version-support-status.
References
| https://www.herodevs.com/vulnerability-directory/cve-2026-11998 | third-party-advisory, web | |
| https://codepen.io/herodevs/pen/JobQdmz/5b3896f56fab66f20cd25e698cf3faa8 | exploit, technical-description, web | |
| https://www.herodevs.com/vulnerability-directory/cve-2026-11998?nes-for-angularjs | exploit, web | |
| https://access.redhat.com/security/cve/CVE-2026-11998 | vdb-entry, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2492579 | issue-tracking, web | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-11998.json | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-11998 | advisory | |
| https://github.com/angular/angular.js | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-11998 changed 2026-08-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7x27-g8rg-x87w changed 2026-07-17 | CC-BY-4.0 |
| NVD | CVE-2026-11998 changed 2026-10-25 | Public domain |