CVE
CVE-2026-54265
CNA 原文 · 原文(英文)
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.
受影响版本
- @angular/compiler≥ 22.0.0-next.0, < 22.0.1修复版本 22.0.1
- @angular/compiler≥ 21.0.0-next.0, < 21.2.17修复版本 21.2.17
- @angular/compiler≥ 20.0.0-next.0, < 20.3.25修复版本 20.3.25
- @angular/compiler≤ 19.2.25受影响至 19.2.25(含),修复版本见厂商公告
发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。
公告与补丁
- github.com/angular/angular/commit/3c70270c96677c0dd33585f2afe8e187113e · Patch
- github.com/angular/angular/pull/69107 · Patch
- github.com/angular/angular/security/advisories/GHSA-58w9-8g37-x9v5 · Third Party Advisory
- github.com/advisories/GHSA-58w9-8g37-x9v5 · Third Party Advisory
- osv.dev/vulnerability/GHSA-58w9-8g37-x9v5 · Third Party Advisory
数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。