CVE-2026-27970
中文标题:
(暂无数据)
英文标题:
Angular i18n vulnerable to Cross-Site Scripting (XSS)
漏洞描述
中文描述:
(暂无数据)
英文描述:
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Versions prior to 21.2.0, 21.1.16, 20.3.17, and 19.2.19 have a cross-Site scripting vulnerability in the Angular internationalization (i18n) pipeline. In ICU messages (International Components for Unicode), HTML from translated content was not properly sanitized and could execute arbitrary JavaScript. Angular i18n typically involves three steps, extracting all messages from an application in the source language, sending the messages to be translated, and then merging their translations back into the final source code. Translations are frequently handled by contracts with specific partner companies, and involve sending the source messages to a separate contractor before receiving final translations for display to the end user. If the returned translations have malicious content, it could be rendered into the application and execute arbitrary JavaScript. When successfully exploited, this vulnerability allows for execution of attacker controlled JavaScript in the application origin. Depending on the nature of the application being exploited this could lead to credential exfiltration and/or page vandalism. Several preconditions apply to the attack. The attacker must compromise the translation file (xliff, xtb, etc.). Unlike most XSS vulnerabilities, this issue is not exploitable by arbitrary users. An attacker must first compromise an application's translation file before they can escalate privileges into the Angular application client. The victim application must use Angular i18n, use one or more ICU messages, render an ICU message, and not defend against XSS via a safe content security policy. Versions 21.2.0, 21.1.6, 20.3.17, and 19.2.19 patch the issue. Until the patch is applied, developers should consider reviewing and verifying translated content received from untrusted third parties before incorporating it in an Angular application, enabling strict CSP controls to block unauthorized JavaScript from executing on the page, and enabling Trusted Types to enforce proper HTML sanitization.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| angular | angular | >= 21.2.0-next.0, < 21.2.0 | - | - |
cpe:2.3:a:angular:angular:>=_21.2.0-next.0,_<_21.2.0:*:*:*:*:*:*:*
|
| angular | angular | >= 21.0.0-next.0, < 21.1.6 | - | - |
cpe:2.3:a:angular:angular:>=_21.0.0-next.0,_<_21.1.6:*:*:*:*:*:*:*
|
| angular | angular | >= 20.0.0-next.0, < 20.3.17 | - | - |
cpe:2.3:a:angular:angular:>=_20.0.0-next.0,_<_20.3.17:*:*:*:*:*:*:*
|
| angular | angular | >= 19.0.0-next.0, < 19.2.19 | - | - |
cpe:2.3:a:angular:angular:>=_19.0.0-next.0,_<_19.2.19:*:*:*:*:*:*:*
|
| angular | angular | <= 18.2.14 | - | - |
cpe:2.3:a:angular:angular:<=_18.2.14:*:*:*:*:*:*:*
|
| angular | angular | * | - | - |
cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*
|
| angular | angular | 21.2.0 | - | - |
cpe:2.3:a:angular:angular:21.2.0:next0:*:*:*:node.js:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
cve.org
cve.org
cve.org
cve.org
CVSS评分详情
4.0 (cna)
HIGHCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2026-27970 |
2026-02-26 03:19:54 | 2026-02-25 22:00:02 |
| NVD | nvd_CVE-2026-27970 |
2026-02-27 02:00:05 | 2026-02-26 22:00:03 |
版本与语言
安全公告
变更历史
查看详细变更
- affected_products_count: 5 -> 7
查看详细变更
- data_sources: ['cve'] -> ['cve', 'nvd']