{"id":"CVE-2026-54265","published":"2026-06-22T15:27:38Z","modified":"2026-06-22T15:54:58Z","title":"Angular: Two-Way Property Binding Sanitization Bypass (XSS)","vendor":"angular","product":"angular","tier":"tail","description":{"text":"Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 22.0.1, 21.2.17, and 20.3.25, an issue in the @angular/compiler package allows bypassing DOM property sanitization through the use of two-way property bindings. Specifically, when a native DOM property that requires sanitization (such as innerHTML, srcdoc, src, href, data, or sandbox) is bound using the two-way binding syntax (e.g., [(innerHTML)]=\"value\" or bindon-innerHTML=\"value\"), the Angular template compiler failed to apply the appropriate schema-derived sanitizer resolution to the TwoWayProperty operation. As a result, native two-way DOM bindings were emitted without the required sanitizer function, whereas equivalent one-way bindings would be properly sanitized. This flaw enables an attacker who can control the value of a two-way bound sensitive property to bypass Angular's built-in sanitization logic, potentially leading to client-side Cross-Site Scripting (XSS). This vulnerability is fixed in 22.0.1, 21.2.17, and 20.3.25.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00344,"percentile":0.28627,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/angular/angular/security/advisories/GHSA-58w9-8g37-x9v5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/angular/angular/pull/69107","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular/commit/3c70270c96677c0dd33585f2afe8e187113e5fb4","tags":["x_refsource_MISC"]}],"priority":{"score":9.4,"factors":[{"name":"EPSS percentile","points":5.73},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"angular","affectedVersions":[{"vendor":"angular","product":"angular","versions":[">= 22.0.0-next.0 < 22.0.1",">= 21.0.0-next.0 < 21.2.17",">= 20.0.0-next.0 < 20.3.25","<= 19.2.25"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-22T15:54:52.170678Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@angular/compiler","vulnerableRanges":[">=22.0.0-next.0, <22.0.1",">=21.0.0-next.0, <21.2.17",">=20.0.0-next.0, <20.3.25","<=19.2.25"],"patched":["22.0.1","21.2.17","20.3.25"],"from":["GHSA-58w9-8g37-x9v5"],"provenance":"source"}],"summary":{"text":"Angular's @angular/compiler package fails to apply DOM sanitization to native sensitive properties (such as innerHTML, srcdoc, src, href, data, and sandbox) when they are bound with two-way binding syntax, so the values bypass the sanitizer that one-way bindings would receive. An attacker who can control the value of such a two-way bound property can exploit this to inject script, leading to client-side cross-site scripting, and the attack requires user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:34Z"},"euvd":{"id":"EUVD-2026-38268","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-angular-cve-2025-66412","parents":[{"from":"CVE-2025-66412","to":"CVE-2026-54265","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.ts"],"commits":["https://github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a","https://github.com/angular/angular/commit/3c70270c96677c0dd33585f2afe8e187113e5fb4"],"basis":"shared function","functions":["resolveSanitizers"]}]}],"children":[{"from":"CVE-2026-54265","to":"CVE-2026-88057","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.ts"],"commits":["https://github.com/angular/angular/commit/3c70270c96677c0dd33585f2afe8e187113e5fb4","https://github.com/angular/angular/commit/2f96c8020f85ccb715a76de4b79a0c680c2c7264","https://github.com/angular/angular/commit/6afe6fa781c2f0931f0aedd729b9884a8fe212ee"],"basis":"shared function","functions":["resolveSanitizers"]}]}],"packageHistory":[{"cve":"CVE-2026-22610","published":"2026-01-10","fixed":"21.1.0-rc.0","kev":false},{"cve":"CVE-2026-50557","published":"2026-06-22","fixed":"22.0.0-rc.2","kev":false,"link":{"from":"CVE-2026-50557","to":"CVE-2026-54265","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/compiler","fromFixed":"21.2.15","toFixed":"21.2.17","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:@angular/compiler","fromFixed":"20.3.22","toFixed":"20.3.25","daysApart":0}]}},{"cve":"CVE-2026-32635","published":"2026-03-13","fixed":"22.0.0-next.3","kev":false,"link":{"from":"CVE-2026-32635","to":"CVE-2026-54265","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/compiler","fromFixed":"22.0.0-next.3","toFixed":"22.0.1","daysApart":101}]}},{"cve":"CVE-2026-54265","published":"2026-06-22","fixed":"22.0.1","kev":false},{"cve":"CVE-2026-69151","published":"2026-08-03","fixed":"22.0.1","kev":false,"link":{"from":"CVE-2026-54265","to":"CVE-2026-69151","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/compiler","fromFixed":"21.2.17","toFixed":"21.2.19","daysApart":42},{"kind":"version-step","provenance":"source","package":"npm:@angular/compiler","fromFixed":"20.3.25","toFixed":"20.3.27","daysApart":42}]}},{"cve":"CVE-2026-88057","published":"2026-09-10","fixed":"22.1.0","kev":false}],"package":"npm:@angular/compiler"}}