{"id":"CVE-2026-144408","aliases":["EUVD-2026-143669","GHSA-9qc3-h48f-7h96"],"status":"published","title":"Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values","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.19 and 12.0.0-alpha.4 until 12.0.0-alpha.10, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts fails to inspect a javascript: URL when escapeParameter is enabled and an attacker-controlled translation ends with an unterminated href or src attribute value. When that translation is rendered as HTML during SSR, the browser continues tokenizing the value into later page markup, closes it at a later quote, and emits the element with the executable URL. This can cause stored XSS in the application origin, including an iframe variant that needs no user interaction. Client-only innerHTML fragment parsing is not affected because the incomplete tag is dropped at the end of the fragment. This issue is fixed in versions 11.4.19 and 12.0.0-alpha.10.","severity":{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-12-04","score":0.00491,"percentile":0.43787,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2026-12-03T19:48:36Z","modified":"2026-12-04T22:14:09Z","fixes":[{"ecosystem":"npm","package":"vue-i18n","fixed_in":["11.4.19","12.0.0-alpha.10"],"sources":["ghsa"]},{"ecosystem":"npm","package":"petite-vue-i18n","fixed_in":["11.4.19","12.0.0-alpha.10"],"sources":["ghsa"]},{"ecosystem":"npm","package":"@intlify/core-base","fixed_in":["11.4.19","12.0.0-alpha.10"],"sources":["ghsa"]},{"ecosystem":"npm","package":"@intlify/core","fixed_in":["11.4.19","12.0.0-alpha.10"],"sources":["ghsa"]},{"ecosystem":"npm","package":"@intlify/vue-i18n-core","fixed_in":["11.4.19","12.0.0-alpha.10"],"sources":["ghsa"]},{"ecosystem":"npm","package":"@intlify/shared","fixed_in":["11.4.19","12.0.0-alpha.10"],"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.19"}]}]},{"source":"ghsa","ecosystem":"npm","package":"vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.10"}]}]},{"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.19"}]}]},{"source":"ghsa","ecosystem":"npm","package":"petite-vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.10"}]}]},{"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.19"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/core-base","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.10"}]}]},{"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.19"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.10"}]}]},{"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.19"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/vue-i18n-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.10"}]}]},{"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.19"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/shared","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.10"}]}]}],"products":[{"vendor":"intlify","product":"vue-i18n"}],"references":[{"url":"https://github.com/intlify/vue-i18n/security/advisories/GHSA-9qc3-h48f-7h96","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/intlify/vue-i18n/pull/2769","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/intlify/vue-i18n/commit/addbc3aa1bebb5542541c4ef08968e2cd0ea2d71","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/intlify/vue-i18n/commit/ef52989d0dde9e12fa3c7fc25494b306f7f05d93","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/intlify/vue-i18n/releases/tag/v11.4.19","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/intlify/vue-i18n/releases/tag/v12.0.0-alpha.10","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144408","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-9qc3-h48f-7h96"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144408.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-144408","title":"Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values","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.19 and 12.0.0-alpha.4 until 12.0.0-alpha.10, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts fails to inspect a javascript: URL when escapeParameter is enabled and an attacker-controlled translation ends with an unterminated href or src attribute value. When that translation is rendered as HTML during SSR, the browser continues tokenizing the value into later page markup, closes it at a later quote, and emits the element with the executable URL. This can cause stored XSS in the application origin, including an iframe variant that needs no user interaction. Client-only innerHTML fragment parsing is not affected because the incomplete tag is dropped at the end of the fragment. This issue is fixed in versions 11.4.19 and 12.0.0-alpha.10.","status":"published","published":"2026-12-03T19:48:36.665Z","modified":"2026-12-03T19:48:36.665Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-12-03T19:56:14.405351Z"}],"euvd":[{"id":"EUVD-2026-143669","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.19 and 12.0.0-alpha.4 until 12.0.0-alpha.10, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts fails to inspect a javascript: URL when escapeParameter is enabled and an attacker-controlled translation ends with an unterminated href or src attribute value. When that translation is rendered as HTML during SSR, the browser continues tokenizing the value into later page markup, closes it at a later quote, and emits the element with the executable URL. This can cause stored XSS in the application origin, including an iframe variant that needs no user interaction. Client-only innerHTML fragment parsing is not affected because the incomplete tag is dropped at the end of the fragment. This issue is fixed in versions 11.4.19 and 12.0.0-alpha.10.","status":"published","published":"2026-12-03T19:48:36Z","modified":"2026-12-03T19:48:36Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"updated_at":"2026-12-03T21:34:41.393181Z"}],"ghsa":[{"id":"GHSA-9qc3-h48f-7h96","title":"Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values","description":"## Summary\n\nWhen `escapeParameter` is enabled (`escapeParameterHtml` in the Legacy API), Vue I18n passes the translated string through `sanitizeTranslatedHtml()`. The sanitizer disables `javascript:` URLs by rewriting them to `about:blank` — but only for attributes it can recognize. Both recognition passes require a well-formed attribute: the quoted pass needs the closing quote inside the message, and the unquoted pass rejects any value that starts with a quote character. A message that opens an attribute value and never closes it therefore keeps its `javascript:` URL verbatim.\n\nThe HTML tokenizer, however, does not stop at the end of the message. In server-side rendering the unterminated attribute value continues into the rest of the page and closes at the next `\"` in the application's own markup; the element is then emitted with the attacker's `javascript:` URL as its `src`/`href`. A `//` inside the URL comments out the swallowed page content, so the executed script is exactly attacker-controlled. An `\u003ciframe src=\"javascript:...\"\u003e` runs without any user interaction, in the origin of the application.\n\n## Affected component\n\n- `sanitizeTranslatedHtml()` in `packages/shared/src/sanitize.ts`\n  - quoted-attribute pass: `packages/shared/src/sanitize.ts` L139-148 (`/([\\w:-]+)\\s*=\\s*\"([^\"]*)\"/g` requires a closing quote)\n  - unquoted-attribute pass: `packages/shared/src/sanitize.ts` L186-189 (value class `[^\\s\"'=\u003c\u003e`]+` cannot match a value starting with `\"`)\n- Sanitization is applied to every translation result when `escapeParameter` is on: `packages/core-base/src/translate.ts` L715-717.\n- Verified against the released sanitizer at v11.4.18 (the version that fixed GHSA-jrxq-gc2q-9357) and master v12.0.0-alpha.9 (c528b8d) — the relevant regexes are identical in both.\n- Affected packages: `vue-i18n`, `petite-vue-i18n`, `@intlify/core-base`, `@intlify/core`, `@intlify/vue-i18n-core`, `@intlify/shared` (same versions as GHSA-jrxq-gc2q-9357).\n- Not affected: client-side-only rendering (`innerHTML` of a lone message string drops the unterminated tag token at EOF — verified with parse5), and `\u003ci18n-t\u003e` (does not render translations as HTML).\n\n## PoC\n\nMessage (attacker-controlled translation, `escapeParameter: true`):\n\n```\n\u003ciframe src=\"javascript:alert(document.domain)//\n```\n\nNo closing quote. `sanitizeTranslatedHtml()` returns the string byte-identical (verified with an exact replica of the released code for v11.4.18 and v12.0.0-alpha.9):\n\n```js\nimport { createSSRApp, h } from 'vue'\nimport { renderToString } from 'vue/server-renderer'\nimport { createI18n } from 'vue-i18n'\n\nconst i18n = createI18n({\n  legacy: false,\n  locale: 'en',\n  escapeParameter: true,\n  messages: { en: { hello: '\u003ciframe src=\"javascript:alert(document.domain)//' } }\n})\n\nconst app = createSSRApp({\n  render: () =\u003e h('div', { innerHTML: i18n.global.t('hello') })\n})\napp.use(i18n)\n\nconsole.log(await renderToString(app))\n// the iframe start tag is still unterminated; the server continues writing the page\n```\n\nOn the server, the rest of the page (footer, `class=\"...\"`, scripts) follows. In a browser, the tokenizer keeps `src` open across the page boundary and closes it at the next `\"`; the element is emitted with `src=\"javascript:alert(document.domain)//\u003c/div\u003e\u003cfooter class=\"` and the `//` comments out the swallowed content — `alert(document.domain)` runs in the application origin when the iframe loads, with no user interaction. Verified with parse5 (spec-compliant HTML parser):\n\n```\nPAGE PARSE: div -\u003e {id=\"app\"}\n  iframe -\u003e {src=\"javascript:alert(document.domain)//\u003c/div\u003e\u003cfoo\", footer\"=\"\"}\n```\n\nThe click-required variant is `\u003ca href=\"javascript:alert(document.domain)//` (same mechanism, anchor emitted with the javascript: URL).\n\nNote: the `srcdoc` and event-handler neutralizations are string-wide and DO apply to unterminated values (an unterminated `\u003ciframe srcdoc=\"\u003cimg src=x onerror=alert(1)//` gets its inner `onerror` neutralized to `\u0026#111;nerror`, and character references are not decoded in attribute names per WHATWG §13.2.5.32), so the javascript:-URL attribute is the surviving vector.\n\n## Impact\n\nApplications that enable `escapeParameter`, render translations as HTML on the server (v-html/innerHTML in SSR, Nuxt, pre-rendered pages), and contain message content that is not fully trusted (crowdsourced or stored translations) are affected. An attacker who can change such a message runs script in the origin of the application for every visitor of a page that shows the message (stored XSS), without any user interaction, despite the sanitizer — the exact impact model of GHSA-jrxq-gc2q-9357.\n\n## Suggested CVSS 3.1\n\n7.2 — `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N` (same vector as GHSA-jrxq-gc2q-9357)\n\n## Suggested fix\n\nDetect unterminated attribute values at the end of sanitization and neutralize them, e.g. escape the `\u003c` of any start tag whose quoted attribute value is still open at end of string (`/\u003c(?=[^\u003c]*=[^\"]*\"(?:[^\"]*)*$)/`-class detection, or track quote parity while scanning), so the element degrades to text exactly like the `\u003cscript\u003e`/`\u003cbase\u003e`/`\u003canimate\u003e`/`\u003cset\u003e` neutralization. A robust alternative is to tokenize with a spec-compliant HTML tokenizer and re-serialize instead of regex passes. Add test cases for unclosed `\"` and `'` attribute values in `packages/shared/test/sanitize.test.ts` (58 existing cases, none cover unterminated values).\n\n## Dedup\n\n- Not any of the 9 published advisories. GHSA-jrxq-gc2q-9357 (SSR `\u003cscript\u003e`), GHSA-473g-cvf6-mfxj (`xlink:href`/`animate`/`set`), GHSA-83rm-6c8r-g728 (`srcdoc`) are element/attribute-name specific; this is a value-shape (unterminated attribute) bypass with a distinct root cause.\n- The private-security fork merges b27a50e (Nov 1 → 11.4.17) and a66ace0 (Nov 3 → 11.4.18) did not modify the quoted- or unquoted-attribute URL passes; their diffs are fully accounted for by the two published advisories.\n- Distinct from GHSA-8rc2-428q-7ww3 (escaping gap in `escapeParams`), CVE-2025-53892 (pre-sanitizer era), and the prototype-pollution advisories.\n\n## Patches\n\nFixed in `vue-i18n` 11.4.19 and 12.0.0-alpha.10, and in the same versions of `petite-vue-i18n`, `@intlify/core-base`, `@intlify/core`, `@intlify/vue-i18n-core` and `@intlify/shared`.\n\n`sanitizeTranslatedHtml()` now reads tags and attributes with the rules of the HTML tokenizer, so that it agrees with browsers on where each attribute starts and ends, and it checks every attribute of every start tag. A tag, a comment, or an element like `\u003ctextarea\u003e` that is not closed at the end of a translation is turned into text, so that it cannot take in the rest of the page when the HTML is rendered on the server.\n\nv9 and v10 are not supported, and do not get a fix.\n\n## Workarounds\n\nDo not render translation messages from untrusted sources with `v-html`, even with `escapeParameter` enabled. Use [Component interpolation](https://vue-i18n.intlify.dev/guide/advanced/component.html) instead.\n\n## Related\n\n- [GHSA-7356-3q55-jvxm](https://github.com/intlify/vue-i18n/security/advisories/GHSA-7356-3q55-jvxm), which is fixed by the same change\n- [HTML Message - Using the escape parameter option](https://vue-i18n.intlify.dev/guide/essentials/syntax.html#using-the-escape-parameter-option)","status":"published","published":"2026-12-04T22:14:08Z","modified":"2026-12-04T22:14:09Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-12-04T22:29:34.61237Z"}],"nvd":[{"id":"CVE-2026-144408","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.19 and 12.0.0-alpha.4 until 12.0.0-alpha.10, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts fails to inspect a javascript: URL when escapeParameter is enabled and an attacker-controlled translation ends with an unterminated href or src attribute value. When that translation is rendered as HTML during SSR, the browser continues tokenizing the value into later page markup, closes it at a later quote, and emits the element with the executable URL. This can cause stored XSS in the application origin, including an iframe variant that needs no user interaction. Client-only innerHTML fragment parsing is not affected because the incomplete tag is dropped at the end of the fragment. This issue is fixed in versions 11.4.19 and 12.0.0-alpha.10.","status":"published","published":"2026-12-03T20:17:48.167Z","modified":"2026-12-03T20:17:48.32Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-79"],"updated_at":"2026-12-03T20:20:46.999493Z"}],"osv":[{"id":"CVE-2026-144408","title":"Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values","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.19 and 12.0.0-alpha.4 until 12.0.0-alpha.10, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts fails to inspect a javascript: URL when escapeParameter is enabled and an attacker-controlled translation ends with an unterminated href or src attribute value. When that translation is rendered as HTML during SSR, the browser continues tokenizing the value into later page markup, closes it at a later quote, and emits the element with the executable URL. This can cause stored XSS in the application origin, including an iframe variant that needs no user interaction. Client-only innerHTML fragment parsing is not affected because the incomplete tag is dropped at the end of the fragment. This issue is fixed in versions 11.4.19 and 12.0.0-alpha.10.","status":"published","published":"2026-12-03T19:48:36.665Z","modified":"2026-12-04T21:02:47.260734031Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-12-04T21:27:50.529822Z"}]}}
