Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-88057 EUVD-2026-75678GHSA-hh8m-fm6v-7cvg

Angular: Sanitization bypass via directive host bindings on concrete host elements in @angular/core and @angular/compiler

Published Sep 10, 2026 · Updated Sep 11, 2026 · Assigned by GitHub_M

Description

Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.28, 21.2.20, and 22.1.0, Angular's compiler and runtime in @angular/core and @angular/compiler could omit or select an incorrect sanitizer for security-sensitive directive host bindings because SecurityContext was derived from the declaring directive or component selector rather than the concrete host element. The mismatch is reachable through hostDirectives composition, inherited HostBinding declarations, createComponent with a custom hostElement or dynamic directives, SVG/MathML namespace elements, and tag-neutral selectors such as :not(...). Attacker-controlled href, src, action, xlink:href, or data values can therefore reach DOM attributes without Angular's built-in sanitizer and execute arbitrary JavaScript in the user's browser context. Applications unable to upgrade can use DomSanitizer.sanitize with SecurityContext.URL before assignment or restrict inputs to validated HTTP and HTTPS URL schemes. This issue is fixed in versions 20.3.28, 21.2.20, and 22.1.0.

Affected products

VendorProductAffectedFixed
angular angular <= 19.2.25, >= 20.0.0, < 20.3.28, >= 21.0.0, < 21.2.20, >= 22.0.0, < 22.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 angular.js No fix yet —
Debian 12 angular.js No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 angular.js No fix yet —
Ubuntu 26.04 LTS angular.js No fix yet —
Ubuntu 24.04 LTS angular.js No fix yet —
Ubuntu 22.04 LTS angular.js No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS angular.js No fix yet —
Ubuntu Pro 18.04 LTS angular.js No fix yet —
Ubuntu Pro 16.04 LTS angular.js No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling katib-suggestion-hyperopt 0.19.0-r40 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @angular/compiler >= 22.0.0, < 22.1.0 22.1.0 GHSA-hh8m-fm6v-7cvg
npm @angular/compiler >= 21.0.0, < 21.2.20 21.2.20 GHSA-hh8m-fm6v-7cvg
npm @angular/compiler >= 20.0.0, < 20.3.28 20.3.28 GHSA-hh8m-fm6v-7cvg
npm @angular/compiler <= 19.2.25 — GHSA-hh8m-fm6v-7cvg
npm @angular/core >= 22.0.0, < 22.1.0 22.1.0 GHSA-hh8m-fm6v-7cvg
npm @angular/core >= 21.0.0, < 21.2.20 21.2.20 GHSA-hh8m-fm6v-7cvg
npm @angular/core >= 20.0.0, < 20.3.28 20.3.28 GHSA-hh8m-fm6v-7cvg
npm @angular/core <= 19.2.25 — GHSA-hh8m-fm6v-7cvg

Advisories 1

References