CVE-2026-144407: Vue I18n: sanitizeTranslatedHtml allows DOM XSS via javascript: URLs after an unquoted attribute value that contains a quote
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 parses attributes with regular expressions that disagree with the browser tokenizer when an unquoted attribute value contains a quote. When escapeParameter is enabled and an attacker-controlled translation is rendered as HTML through v-html or server rendering, the translation can cause the sanitizer to consume the opening quote of a real href or src attribute as part of a false attribute, leaving a javascript: URL unchecked. The browser then recognizes the executable URL, which can produce DOM XSS in the application origin, including an iframe form that requires no user interaction. Escaped interpolation parameters alone cannot create the required value shape. This issue is fixed in versions 11.4.19 and 12.0.0-alpha.10.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.4.19 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.0.0-alpha.10
Event History
Frequently Asked Questions
Which applications are exposed in practice?
Exposure requires escapeParameter to be enabled and an attacker-controlled translation to be rendered as HTML using v-html or server rendering. Applications that do not render such translations as HTML are not described as meeting the exploit conditions.
What level of attacker control is needed?
An attacker needs control of a translation that is rendered as HTML and can supply the attribute-value shape that causes the sanitizer and browser to parse it differently. Escaped interpolation parameters alone cannot create the required value shape.
What should teams upgrade to?
The issue is fixed in Vue I18n 11.4.19 and 12.0.0-alpha.10. The provided information does not identify fixed releases for the 9.x or 10.x versions listed as affected.
How can we identify potentially affected usage?
Identify deployments using the listed affected Vue I18n versions, with escapeParameter enabled, that render translations through v-html or server rendering. Prioritize cases where translation content can be attacker-controlled.