CVE-2026-144408: 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.
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 deployments are exposed to this issue?
Applications using the affected Vue I18n versions are exposed when escapeParameter is enabled, attacker-controlled translation content can end with an unterminated href or src attribute value, and the translation is rendered as HTML during server-side rendering (SSR). Client-only rendering through innerHTML fragment parsing is not affected.
What does an attacker need to exploit the vulnerability?
An attacker needs a way to control stored translation content and have it rendered as HTML during SSR. The malicious translation must use an unterminated href or src attribute value containing a javascript: URL; the browser may continue parsing into later page markup until it finds a closing quote.
Is user interaction required for exploitation?
Not necessarily. The advisory describes an iframe variant that requires no user interaction.
What should be done if an affected version is in use?
Upgrade to Vue I18n 11.4.19 or 12.0.0-alpha.10. Until upgrading, avoid rendering attacker-controlled translations as HTML during SSR, particularly where escapeParameter is enabled.