CVE-2026-144408: Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values
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.
References
- github.com/advisories/GHSA-9qc3-h48f-7h96
- github.com/intlify/vue-i18n/commit/addbc3aa1bebb5542541c4ef08968e2cd0ea2d71
- github.com/intlify/vue-i18n/commit/ef52989d0dde9e12fa3c7fc25494b306f7f05d93
- github.com/intlify/vue-i18n/pull/2769
- github.com/intlify/vue-i18n/releases/tag/v11.4.19
- github.com/intlify/vue-i18n/releases/tag/v12.0.0-alpha.10
- github.com/intlify/vue-i18n/security/advisories/GHSA-9qc3-h48f-7h96
- nvd.nist.gov/vuln/detail/CVE-2026-144408
Code Behaviors & Features
Detect and mitigate CVE-2026-144408 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →