Every CVESearch/Get API key

CVE-2026-144408

Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values

Explain with AI
ChatGPTClaudeGoogle AI
Severity
7.2High
Network attack, no privileges, no user interactionCVSS 3.1, CVE List
Exploitation
Unknown
No source reports exploitation yet.
Exploit chance
0.49% in 30 days
Percentile43rd
EPSS, scored
Listed fixes
6 packages
From 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:N

Exploit chance over time

Scored once so far, on . The trend appears after a second daily score.

Affected

Packages 6

Affected packages
PackageAffectedFixed
vue-i18n
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None 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-i18n
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None 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
Affected packages
PackageAffectedFixed
@intlify/core-base
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None 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/core
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None 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-core
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None 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/shared
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None 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 HighCVSS: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 HighCVSS: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() in packages/shared/src/sanitize.ts
    • quoted-attribute pass: packages/shared/src/sanitize.ts L139-148 (/([\w:-]+)\s*=\s*"([^"]*)"/g requires a closing quote)
    • unquoted-attribute pass: packages/shared/src/sanitize.ts L186-189 (value class [^\s"'=<>]+cannot match a value starting with"`)
  • Sanitization is applied to every translation result when escapeParameter is on: packages/core-base/src/translate.ts L715-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 (innerHTML of 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 &#111;nerror, and character…

Record
GHSA-9qc3-h48f-7h96
CVSS 3.1
7.2 HighCVSS: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 HighCVSS: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 HighCVSS: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

Changes recorded by Every CVE
DayChangedSources
Affected packages, key facts, referencesGitHub Advisories, OSV
Other IDs, published dateEUVD
Other IDs, referencesNVD, OSV
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open