Vue I18n: escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed
受影响
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| npm:vue-i18n | = 9.14.5 | 暂无 |
| npm:vue-i18n | = 10.0.8 | 暂无 |
| npm:vue-i18n | >= 11.1.10, < 11.4.22 | 11.4.22 |
| npm:vue-i18n | >= 12.0.0-alpha.4, < 12.0.0-alpha.13 | 12.0.0-alpha.13 |
| npm:petite-vue-i18n | = 9.14.5 | 暂无 |
显示全部 (24)
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| npm:petite-vue-i18n | = 10.0.8 | 暂无 |
| npm:petite-vue-i18n | >= 11.1.10, < 11.4.22 | 11.4.22 |
| npm:petite-vue-i18n | >= 12.0.0-alpha.4, < 12.0.0-alpha.13 | 12.0.0-alpha.13 |
| npm:@intlify/core-base | = 9.14.5 | 暂无 |
| npm:@intlify/core-base | = 10.0.8 | 暂无 |
| npm:@intlify/core-base | >= 11.1.10, < 11.4.22 | 11.4.22 |
| npm:@intlify/core-base | >= 12.0.0-alpha.4, < 12.0.0-alpha.13 | 12.0.0-alpha.13 |
| npm:@intlify/core | = 9.14.5 | 暂无 |
| npm:@intlify/core | = 10.0.8 | 暂无 |
| npm:@intlify/core | >= 11.1.10, < 11.4.22 | 11.4.22 |
| npm:@intlify/core | >= 12.0.0-alpha.4, < 12.0.0-alpha.13 | 12.0.0-alpha.13 |
| npm:@intlify/vue-i18n-core | = 9.14.5 | 暂无 |
| npm:@intlify/vue-i18n-core | = 10.0.8 | 暂无 |
| npm:@intlify/vue-i18n-core | >= 11.1.10, < 11.4.22 | 11.4.22 |
| npm:@intlify/vue-i18n-core | >= 12.0.0-alpha.4, < 12.0.0-alpha.13 | 12.0.0-alpha.13 |
| npm:@intlify/shared | = 9.14.5 | 暂无 |
| npm:@intlify/shared | = 10.0.8 | 暂无 |
| npm:@intlify/shared | >= 11.1.10, < 11.4.22 | 11.4.22 |
| npm:@intlify/shared | >= 12.0.0-alpha.4, < 12.0.0-alpha.13 | 12.0.0-alpha.13 |
When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n sanitizes the translated HTML with sanitizeTranslatedHtml(). The sanitizer reads tags in the same way as the HTML tokenizer, but it does not follow how elements open and close. An element that a translation leaves open, or an end tag that closes an element outside the translation, stays in the result. When the page is rendered on the server (SSR), the rest of the page follows the translation in the same HTML, and…
2026/12/05 07:15,GitHub Advisory Database 发布了“Vue I18n: escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:JavaScript / Node.js、Vue.js。CVE:CVE-2026-144406。