{"id":"CVE-2026-144406","aliases":["EUVD-2026-143703","GHSA-786j-gfwp-vhm5"],"status":"published","title":"vue-i18n escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed","description":"Vue I18n is the internationalization plugin for Vue.js. In versions 9.14.5 and 10.0.8, and from 11.1.10 until 11.4.22 and 12.0.0-alpha.4 until 12.0.0-alpha.13, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts does not track the HTML element stack when escapeParameter is enabled. During SSR, an attacker-controlled translation can leave HTML, SVG, or MathML elements open, or close elements outside the translation, causing later page markup to be parsed in the attacker-selected context. Script execution requires a later inline script whose text contains attacker-controlled data and no intervening element that leaves SVG parsing; character-reference decoding can then let the data terminate a JavaScript string and execute in the application origin. Otherwise, the manipulated parser state can hide the page, capture later form controls, or absorb subsequent content. Client-only fragment rendering is not affected. This issue is fixed in versions 11.4.22 and 12.0.0-alpha.13.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-12-04","score":0.00647,"percentile":0.52434,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true,"poc_reported":true},"cwes":["CWE-116","CWE-79"],"published":"2026-12-03T19:43:17Z","modified":"2026-12-04T22:15:30Z","fixes":[{"ecosystem":"npm","package":"vue-i18n","fixed_in":["11.4.22","12.0.0-alpha.13"],"sources":["ghsa"]},{"ecosystem":"npm","package":"petite-vue-i18n","fixed_in":["11.4.22","12.0.0-alpha.13"],"sources":["ghsa"]},{"ecosystem":"npm","package":"@intlify/core-base","fixed_in":["11.4.22","12.0.0-alpha.13"],"sources":["ghsa"]},{"ecosystem":"npm","package":"@intlify/core","fixed_in":["11.4.22","12.0.0-alpha.13"],"sources":["ghsa"]},{"ecosystem":"npm","package":"@intlify/vue-i18n-core","fixed_in":["11.4.22","12.0.0-alpha.13"],"sources":["ghsa"]},{"ecosystem":"npm","package":"@intlify/shared","fixed_in":["11.4.22","12.0.0-alpha.13"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.14.5"},{"last_affected":"9.14.5"}]}],"versions":["9.14.5"]},{"source":"ghsa","ecosystem":"npm","package":"vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.0.8"},{"last_affected":"10.0.8"}]}],"versions":["10.0.8"]},{"source":"ghsa","ecosystem":"npm","package":"vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.1.10"},{"fixed":"11.4.22"}]}]},{"source":"ghsa","ecosystem":"npm","package":"vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.13"}]}]},{"source":"ghsa","ecosystem":"npm","package":"petite-vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.14.5"},{"last_affected":"9.14.5"}]}],"versions":["9.14.5"]},{"source":"ghsa","ecosystem":"npm","package":"petite-vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.0.8"},{"last_affected":"10.0.8"}]}],"versions":["10.0.8"]},{"source":"ghsa","ecosystem":"npm","package":"petite-vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.1.10"},{"fixed":"11.4.22"}]}]},{"source":"ghsa","ecosystem":"npm","package":"petite-vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.13"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/core-base","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.14.5"},{"last_affected":"9.14.5"}]}],"versions":["9.14.5"]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/core-base","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.0.8"},{"last_affected":"10.0.8"}]}],"versions":["10.0.8"]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/core-base","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.1.10"},{"fixed":"11.4.22"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/core-base","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.13"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.14.5"},{"last_affected":"9.14.5"}]}],"versions":["9.14.5"]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.0.8"},{"last_affected":"10.0.8"}]}],"versions":["10.0.8"]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.1.10"},{"fixed":"11.4.22"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.13"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/vue-i18n-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.14.5"},{"last_affected":"9.14.5"}]}],"versions":["9.14.5"]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/vue-i18n-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.0.8"},{"last_affected":"10.0.8"}]}],"versions":["10.0.8"]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/vue-i18n-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.1.10"},{"fixed":"11.4.22"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/vue-i18n-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.13"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/shared","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.14.5"},{"last_affected":"9.14.5"}]}],"versions":["9.14.5"]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/shared","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.0.8"},{"last_affected":"10.0.8"}]}],"versions":["10.0.8"]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/shared","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.1.10"},{"fixed":"11.4.22"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/shared","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.13"}]}]}],"products":[{"vendor":"intlify","product":"vue-i18n"}],"references":[{"url":"https://github.com/intlify/vue-i18n/security/advisories/GHSA-786j-gfwp-vhm5","tags":["x_refsource_CONFIRM","exploit","advisory"]},{"url":"https://github.com/intlify/vue-i18n/pull/2793","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/intlify/vue-i18n/commit/813da5eee6b755c544755d86c341c84fbbecac9f","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/intlify/vue-i18n/commit/a3b3d0a8e81d2b2b7a39b197d8e359fe27e1e0af","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/intlify/vue-i18n/releases/tag/v11.4.22","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/intlify/vue-i18n/releases/tag/v12.0.0-alpha.13","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144406","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-786j-gfwp-vhm5"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144406.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-144406","title":"vue-i18n escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed","description":"Vue I18n is the internationalization plugin for Vue.js. In versions 9.14.5 and 10.0.8, and from 11.1.10 until 11.4.22 and 12.0.0-alpha.4 until 12.0.0-alpha.13, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts does not track the HTML element stack when escapeParameter is enabled. During SSR, an attacker-controlled translation can leave HTML, SVG, or MathML elements open, or close elements outside the translation, causing later page markup to be parsed in the attacker-selected context. Script execution requires a later inline script whose text contains attacker-controlled data and no intervening element that leaves SVG parsing; character-reference decoding can then let the data terminate a JavaScript string and execute in the application origin. Otherwise, the manipulated parser state can hide the page, capture later form controls, or absorb subsequent content. Client-only fragment rendering is not affected. This issue is fixed in versions 11.4.22 and 12.0.0-alpha.13.","status":"published","published":"2026-12-03T19:43:17.21Z","modified":"2026-12-03T20:28:37.192Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-79","CWE-116"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial","date":"2026-12-03"},"updated_at":"2026-12-03T20:39:39.184303Z"}],"euvd":[{"id":"EUVD-2026-143703","description":"Vue I18n is the internationalization plugin for Vue.js. In versions 9.14.5 and 10.0.8, and from 11.1.10 until 11.4.22 and 12.0.0-alpha.4 until 12.0.0-alpha.13, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts does not track the HTML element stack when escapeParameter is enabled. During SSR, an attacker-controlled translation can leave HTML, SVG, or MathML elements open, or close elements outside the translation, causing later page markup to be parsed in the attacker-selected context. Script execution requires a later inline script whose text contains attacker-controlled data and no intervening element that leaves SVG parsing; character-reference decoding can then let the data terminate a JavaScript string and execute in the application origin. Otherwise, the manipulated parser state can hide the page, capture later form controls, or absorb subsequent content. Client-only fragment rendering is not affected. This issue is fixed in versions 11.4.22 and 12.0.0-alpha.13.","status":"published","published":"2026-12-03T19:43:17Z","modified":"2026-12-03T20:28:37Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-12-03T21:34:41.393181Z"}],"ghsa":[{"id":"GHSA-786j-gfwp-vhm5","title":"Vue I18n: escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed","description":"### Summary\n\nWhen `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.\n\nWhen 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 `\u003ctemplate\u003e` hides the rest of the page, and an unclosed `\u003cselect\u003e` takes it in. With `\u003cobject\u003e\u003csvg\u003e`, `\u003ctable\u003e\u003csvg\u003e` or `\u003cmath\u003e\u003cmi\u003e\u003csvg\u003e`, the rest of the page is parsed as SVG, and a later inline `\u003cscript\u003e` 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 `\u0026quot;` in a serialized state, can then end a JavaScript string, and run in the origin of the application.\n\n### Details\n\n`sanitizeTranslatedHtml()` in `packages/shared/src/sanitize.ts` turns a tag, a comment, or an element whose content is text (such as `\u003ctextarea\u003e`) 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.\n\nIn the HTML parser, an end tag closes an element only when the element is in scope. `\u003cobject\u003e`, `\u003ctable\u003e`, `\u003ctemplate\u003e`, MathML `\u003cmi\u003e` and similar elements are boundaries of the scope, so the end tags of the element that holds the translation, and of the application after it, are ignored while they are open. `\u003csvg\u003e` inside them keeps the rest of the page in SVG until a start tag such as `\u003cdiv\u003e`, `\u003cp\u003e` or `\u003cspan\u003e` leaves SVG.\n\nSome shapes need no boundary:\n\n- In a `\u003cspan\u003e`, `\u003ca\u003e`, `\u003csmall\u003e` or similar element, `\u003cdiv\u003e\u003csvg\u003e` or `\u003cli\u003e\u003csvg\u003e` keeps `\u003csvg\u003e` open, because the end tag of the container is ignored while a special element such as `\u003cdiv\u003e` is open.\n- In an `\u003ca\u003e`, `\u003c/a\u003e\u003csvg\u003e` closes the container, and opens `\u003csvg\u003e` after it.\n- In an SVG `\u003cforeignObject\u003e` of the page, `\u003c/span\u003e\u003c/foreignObject\u003e` closes the `\u003cforeignObject\u003e` of the page without opening any element.\n\nAn inline `\u003cscript\u003e` in SVG is an SVG script. Its content is parsed as markup, so `\u0026quot;` becomes `\"` before the script runs.\n\nBefore 11.4.21 and 12.0.0-alpha.12, such markup can also come from an interpolation parameter that is not a string, even when the messages are trusted (GHSA-4fx6-3h3f-fh66).\n\nRendering on the client (`v-html`, which uses `innerHTML`) is not affected: the browser parses the translation as a fragment, and closes what is open at its end.\n\n### PoC\n\n```js\nimport { createI18n } from 'vue-i18n'\n\nconst i18n = createI18n({\n  legacy: false,\n  locale: 'en',\n  escapeParameter: true,\n  messages: {\n    en: {\n      footer: '© Example\u003cobject\u003e\u003csvg\u003e',\n      greeting: 'Say \u0026quot;-alert(document.cookie)-\u0026quot; hi'\n    }\n  }\n})\n```\n\nThe footer is rendered on the server with `\u003csmall v-html=\"t('footer')\"\u003e\u003c/small\u003e`, and the page puts its translations into an inline state after the application:\n\n```html\n\u003cfooter\u003e\u003csmall\u003e© Example\u003cobject\u003e\u003csvg\u003e\u003c/small\u003e\u003c/footer\u003e\n\u003cscript\u003ewindow.__STATE__ = {\"greeting\":\"Say \u0026quot;-alert(document.cookie)-\u0026quot; hi\"}\u003c/script\u003e\n```\n\n`\u003c/small\u003e` and `\u003c/footer\u003e` are ignored while `\u003cobject\u003e` is open, so the `\u003cscript\u003e` is parsed as an SVG script, `\u0026quot;` becomes `\"`, and `alert(document.cookie)` runs in the origin of the application. This was confirmed on Chromium, Chrome and WebKit with 11.4.20 and 12.0.0-alpha.11.\n\n### Impact\n\nApplications are affected when they render translations as HTML on the server (SSR, including SSG and prerendering) with `escapeParameter` enabled, and an attacker can change the translations (for example crowdsourced or stored translations), or, before 11.4.21 and 12.0.0-alpha.12, pass a parameter that is not a string.\n\nWhen an inline script after the translation holds text that the attacker can change (for example the translations in a serialized state), and no element that leaves SVG (such as `\u003cdiv\u003e`, `\u003cp\u003e` or `\u003cspan\u003e`) comes between them, the attacker can run script in the origin of the application. Otherwise, the attacker can still hide the rest of the page (`\u003ctemplate\u003e`), take it into a `\u003cselect\u003e` or an `\u003cobject\u003e`, or make the inputs of a later form belong to a form that the translation opened (`\u003cform action\u003e`).\n\nPages rendered only on the client are not affected.\n\n### Patches\n\nFixed in 11.4.22 and 12.0.0-alpha.13. `sanitizeTranslatedHtml()` now follows how browsers open and close elements, including SVG and MathML: an end tag that closes no element of the translation is removed, the elements inside an element that an end tag closes are closed before it, and the elements that are still open at the end of the translation are closed. A `\u003cform\u003e` that the translation does not close is turned into text, and so are `\u003cforeignObject\u003e`, `\u003cdesc\u003e`, `\u003cmi\u003e` and similar SVG and MathML elements outside SVG and MathML.\n\nWell-formed translations are not changed.\n\nv9 and v10 are no longer supported and will not be fixed. Please migrate to v11.\n\n### Workarounds\n\n- Close every element in translations that are rendered with `v-html`, and do not accept translations from untrusted sources.\n- Do not render translations from untrusted sources with `v-html` on the server. Use component interpolation (`\u003ci18n-t\u003e`) instead.\n\n### Related\n\n- [GHSA-9qc3-h48f-7h96](https://github.com/intlify/vue-i18n/security/advisories/GHSA-9qc3-h48f-7h96): an earlier gap in the same function for pages rendered on the server (unclosed tags)\n- [GHSA-4fx6-3h3f-fh66](https://github.com/intlify/vue-i18n/security/advisories/GHSA-4fx6-3h3f-fh66): another way to put markup into a translation, before 11.4.21 and 12.0.0-alpha.12","status":"published","published":"2026-12-04T22:15:28Z","modified":"2026-12-04T22:15:30Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79","CWE-116"],"updated_at":"2026-12-04T22:29:34.61237Z"}],"nvd":[{"id":"CVE-2026-144406","description":"Vue I18n is the internationalization plugin for Vue.js. In versions 9.14.5 and 10.0.8, and from 11.1.10 until 11.4.22 and 12.0.0-alpha.4 until 12.0.0-alpha.13, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts does not track the HTML element stack when escapeParameter is enabled. During SSR, an attacker-controlled translation can leave HTML, SVG, or MathML elements open, or close elements outside the translation, causing later page markup to be parsed in the attacker-selected context. Script execution requires a later inline script whose text contains attacker-controlled data and no intervening element that leaves SVG parsing; character-reference decoding can then let the data terminate a JavaScript string and execute in the application origin. Otherwise, the manipulated parser state can hide the page, capture later form controls, or absorb subsequent content. Client-only fragment rendering is not affected. This issue is fixed in versions 11.4.22 and 12.0.0-alpha.13.","status":"published","published":"2026-12-03T20:17:47.6Z","modified":"2026-12-03T21:18:12.363Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-79","CWE-116"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial","date":"2026-12-03"},"updated_at":"2026-12-03T21:23:58.882957Z"}],"osv":[{"id":"CVE-2026-144406","title":"vue-i18n escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed","description":"Vue I18n is the internationalization plugin for Vue.js. In versions 9.14.5 and 10.0.8, and from 11.1.10 until 11.4.22 and 12.0.0-alpha.4 until 12.0.0-alpha.13, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts does not track the HTML element stack when escapeParameter is enabled. During SSR, an attacker-controlled translation can leave HTML, SVG, or MathML elements open, or close elements outside the translation, causing later page markup to be parsed in the attacker-selected context. Script execution requires a later inline script whose text contains attacker-controlled data and no intervening element that leaves SVG parsing; character-reference decoding can then let the data terminate a JavaScript string and execute in the application origin. Otherwise, the manipulated parser state can hide the page, capture later form controls, or absorb subsequent content. Client-only fragment rendering is not affected. This issue is fixed in versions 11.4.22 and 12.0.0-alpha.13.","status":"published","published":"2026-12-03T19:43:17.21Z","modified":"2026-12-04T21:02:47.064647293Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-116","CWE-79"],"updated_at":"2026-12-04T21:27:50.529822Z"}]}}
