CVE-2026-144406 — Vue-i18n — CWE-79 · CWE-116
### Summary 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 the browser parses it as a part of what is still open. An unclosed `<template>` hides the rest of the page, and an unclosed `<select>` takes it in. With `<object><svg>`, `<table><svg>` or `<math><mi><svg>`, the rest of the page is parsed as SVG, and a later inline `<script>` becomes an SVG script, whose character references are decoded before it runs. Text that the page puts in such a script as data, such as `"` in a serialized state, can then end a JavaScript string, and run in the origin of the application. ### Details `sanitizeTranslatedHtml()` in `packages/shared/src/sanitize.ts` turns a tag, a comment, or an element whose content is text (such as `<textarea>`) into text when it is not closed at the end of the translation (GHSA-9qc3-h48f-7h96). Other elements are kept even when they are not closed, and end tags are kept even when they close no element of the translation. In the HTML parser, an end tag closes an element only when the element is in scope. `
### Summary 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 the browser parses it as a part of what is still open. An unclosed `<template>` hides the rest of the page, and an unclosed `<select>` takes it in. With `<object><svg>`, `<table><svg>` or `<math><mi><svg>`, the rest of the page is parsed as SVG, and a later inline `<script>` becomes an SVG script, whose character references are decoded before it runs. Text that the page puts in such a script as data, such as `"` in a serialized state, can then end a JavaScript string, and run in the origin of the application. ### Details `sanitizeTranslatedHtml()` in `packages/shared/src/sanitize.ts` turns a tag, a comment, or an element whose content is text (such as `<textarea>`) into text when it is not closed at the end of the translation (GHSA-9qc3-h48f-7h96). Other elements are kept even when they are not closed, and end tags are kept even when they close no element of the translation. In the HTML parser, an end tag closes an element only when the element is in scope. `
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-144406
CVSS 5.4/10 · MEDIUM · 03.12.2026
CWE: CWE-79, CWE-116
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Cross-Site Scripting (XSS)
Summary: ### Summary
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 r…
Affected: vue-i18n, petite-vue-i18n, @intlify/core-base, @intlify/core
⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N).
⚠️ Scope changes (S:C) — impact can cross security boundaries.
🌍 REAL WORLD IMPACT
All confidential data readable/stealable; limited integrity modification (I:L); pivot to other systems possible.
🛡️ REMEDIATION
→ Apply vendor security update for vue-i18n.
→ Add CSP headers, HTML-encode all user input.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
📋 Routine update cycle (30 days)
────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]