CVE-2026-144408
Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values
- Severity
- 7.2HighNetwork attack, no privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- 0.49% in 30 daysPercentile43rdEPSS, scored
- Listed fixes
- 6 packagesFrom GitHub AdvisoriesFixed versions by package
Overview
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.
CVSS 3.1 vector
Exploitability
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
Impact
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:NExploit chance over time
Scored once so far, on . The trend appears after a second daily score.
Affected
Packages 6
| Package | Affected | Fixed |
|---|---|---|
vue-i18nnpm | 9.14.5 to 9.14.5 | None listed |
| 10.0.8 to 10.0.8 | None listed | |
| 11.1.10 up to 11.4.19 | 11.4.19 | |
| 12.0.0-alpha.4 up to 12.0.0-alpha.10 | 12.0.0-alpha.10 | |
petite-vue-i18nnpm | 9.14.5 to 9.14.5 | None listed |
| 10.0.8 to 10.0.8 | None listed | |
| 11.1.10 up to 11.4.19 | 11.4.19 | |
| 12.0.0-alpha.4 up to 12.0.0-alpha.10 | 12.0.0-alpha.10 |
Show 4 more packagesShow less
| Package | Affected | Fixed |
|---|---|---|
@intlify/core-basenpm | 9.14.5 to 9.14.5 | None listed |
| 10.0.8 to 10.0.8 | None listed | |
| 11.1.10 up to 11.4.19 | 11.4.19 | |
| 12.0.0-alpha.4 up to 12.0.0-alpha.10 | 12.0.0-alpha.10 | |
@intlify/corenpm | 9.14.5 to 9.14.5 | None listed |
| 10.0.8 to 10.0.8 | None listed | |
| 11.1.10 up to 11.4.19 | 11.4.19 | |
| 12.0.0-alpha.4 up to 12.0.0-alpha.10 | 12.0.0-alpha.10 | |
@intlify/vue-i18n-corenpm | 9.14.5 to 9.14.5 | None listed |
| 10.0.8 to 10.0.8 | None listed | |
| 11.1.10 up to 11.4.19 | 11.4.19 | |
| 12.0.0-alpha.4 up to 12.0.0-alpha.10 | 12.0.0-alpha.10 | |
@intlify/sharednpm | 9.14.5 to 9.14.5 | None listed |
| 10.0.8 to 10.0.8 | None listed | |
| 11.1.10 up to 11.4.19 | 11.4.19 | |
| 12.0.0-alpha.4 up to 12.0.0-alpha.10 | 12.0.0-alpha.10 |
Products 1
Sources
CVE List Score usedCVSS 3.17.2
Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values
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.
- Record
CVE-2026-144408- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-12-03
EUVDEUVD-2026-143669CVSS 3.17.2
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.
- Record
EUVD-2026-143669- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Updated
- 2026-12-03
GitHub AdvisoriesGHSA-9qc3-h48f-7h96CVSS 3.17.2
Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values
Summary
When 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.
The 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 <iframe src="javascript:..."> runs without any user interaction, in the origin of the application.
Affected component
sanitizeTranslatedHtml()inpackages/shared/src/sanitize.ts- quoted-attribute pass:
packages/shared/src/sanitize.tsL139-148 (/([\w:-]+)\s*=\s*"([^"]*)"/grequires a closing quote) - unquoted-attribute pass:
packages/shared/src/sanitize.tsL186-189 (value class[^\s"'=<>]+cannot match a value starting with"`)
- quoted-attribute pass:
- Sanitization is applied to every translation result when
escapeParameteris on:packages/core-base/src/translate.tsL715-717. - 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.
- 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). - Not affected: client-side-only rendering (
innerHTMLof a lone message string drops the unterminated tag token at EOF — verified with parse5), and<i18n-t>(does not render translations as HTML).
PoC
Message (attacker-controlled translation, escapeParameter: true):
<iframe src="javascript:alert(document.domain)//
No 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):
import { createSSRApp, h } from 'vue'
import { renderToString } from 'vue/server-renderer'
import { createI18n } from 'vue-i18n'
const i18n = createI18n({
legacy: false,
locale: 'en',
escapeParameter: true,
messages: { en: { hello: '<iframe src="javascript:alert(document.domain)//' } }
})
const app = createSSRApp({
render: () => h('div', { innerHTML: i18n.global.t('hello') })
})
app.use(i18n)
console.log(await renderToString(app))
// the iframe start tag is still unterminated; the server continues writing the page
On 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)//</div><footer 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):
PAGE PARSE: div -> {id="app"}
iframe -> {src="javascript:alert(document.domain)//</div><foo", footer"=""}
The click-required variant is <a href="javascript:alert(document.domain)// (same mechanism, anchor emitted with the javascript: URL).
Note: the srcdoc and event-handler neutralizations are string-wide and DO apply to unterminated values (an unterminated <iframe srcdoc="<img src=x onerror=alert(1)// gets its inner onerror neutralized to onerror, and character…
- Record
GHSA-9qc3-h48f-7h96- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-12-04
NVDCVSS 3.17.2
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.
- Record
CVE-2026-144408- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-12-03
OSVCVSS 3.17.2
Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values
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.
- Record
CVE-2026-144408- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-12-04
The JSON record also has the rest of 1 source description.
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages, key facts, references | GitHub Advisories, OSV | |
| Other IDs, published date | EUVD | |
| Other IDs, references | NVD, OSV | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/intlify/vue-i18n/security/advisories/GHSA-9qc3-h48f-7h96
github.com/intlify/vue-i18n/pull/2769
github.com/intlify/vue-i18n/commit/addbc3aa1bebb5542541c4ef08968e2cd0ea2d71
github.com/intlify/vue-i18n/commit/ef52989d0dde9e12fa3c7fc25494b306f7f05d93
github.com/intlify/vue-i18n/releases/tag/v11.4.19
github.com/intlify/vue-i18n/releases/tag/v12.0.0-alpha.10
nvd.nist.gov/vuln/detail/CVE-2026-144408
github.com/advisories/GHSA-9qc3-h48f-7h96
github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144408.json