Vue I18nに翻訳メッセージ経由でXSSの脆弱性
Summary
Vue I18nのsanitizeTranslatedHtml()では、iframeのsrcdoc属性が無効化されず、翻訳メッセージに入れた値でスクリプトが実行されるおそれがあります。影響を受けるのは11.1.10から11.4.14未満、12.0.0-alpha.4から12.0.0-alpha.5未満、および9.14.5と10.0.8で、9系と10系はサポートが終了しています。修正版の11.4.14と12.0.0-alpha.5に更新してください。escapeParameterを有効にし、翻訳をv-htmlで描画している場合は優先して対応が必要です。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Vue I18nのsanitizeTranslatedHtml()では、iframeのsrcdoc属性が無効化されず、翻訳メッセージに入れた値でスクリプトが実行されるおそれがあります。影響を受けるのは11.1.10から11.4.14未満、12.0.0-alpha.4から12.0.0-alpha.5未満、および9.14.5と10.0.8で、9系と10系はサポートが終了しています。修正版の11.4.14と12.0.0-alpha.5に更新してください。escapeParameterを有効にし、翻訳をv-htmlで描画している場合は優先して対応が必要です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| intlifyvue-i18n | — | Not listed |
| npmvue-i18n |
≥ 12.0.0-alpha.4, < 12.0.0-alpha.5→ 12.0.0-alpha.5 |
12.0.0-alpha.5 |
| npmpetite-vue-i18n |
≥ 12.0.0-alpha.4, < 12.0.0-alpha.5→ 12.0.0-alpha.5 |
12.0.0-alpha.5 |
| npm@intlify/core-base |
≥ 12.0.0-alpha.4, < 12.0.0-alpha.5→ 12.0.0-alpha.5 |
12.0.0-alpha.5 |
| npm@intlify/core |
≥ 12.0.0-alpha.4, < 12.0.0-alpha.5→ 12.0.0-alpha.5 |
12.0.0-alpha.5 |
| npm@intlify/vue-i18n-core |
≥ 12.0.0-alpha.4, < 12.0.0-alpha.5→ 12.0.0-alpha.5 |
12.0.0-alpha.5 |
| npm@intlify/shared |
≥ 12.0.0-alpha.4, < 12.0.0-alpha.5→ 12.0.0-alpha.5 |
12.0.0-alpha.5 |
Original description The description as published by the source.
Vue I18n is the internationalization plugin for Vue.js. From 11.1.10 until 11.4.14 and from 12.0.0-alpha.4 until 12.0.0-alpha.5, sanitizeTranslatedHtml() escapes markup and event-handler text inside an iframe srcdoc value but leaves the srcdoc attribute active. Browsers decode the character references and parse the value as a same-origin nested HTML document, allowing attacker-controlled parameters or translation content placed in srcdoc to execute script when applications enable escapeParameter and render translations as HTML through v-html. Versions 9.14.5 and 10.0.8 are also affected and are no longer supported, while i18n-t rendering is not affected. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com