CVE-2026-118257

Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages

Published Oct 28, 2026 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
Description
Vue I18n is the internationalization plugin for Vue.js. From 11.1.10 until 11.4.14 and from 12.0.0-alpha.4 until 12.0.0-alpha.5, sanitizeTranslatedHtml() escapes markup and event-handler text inside an iframe srcdoc value but leaves the srcdoc attribute active. Browsers decode the character references and parse the value as a same-origin nested HTML document, allowing attacker-controlled parameters or translation content placed in srcdoc to execute script when applications enable escapeParameter and render translations as HTML through v-html. Versions 9.14.5 and 10.0.8 are also affected and are no longer supported, while i18n-t rendering is not affected. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.

Analysis

AI-generated

Technical impact

Vue I18n’s escapeParameter feature fails to sanitize the value of an iframe’s srcdoc attribute when translation strings are rendered as HTML using v-html. The value is left active, allowing attackers to inject malicious content into the srcdoc that browsers interpret as a nested HTML document. Executing the content results in script execution in the victim’s browser, potentially compromising session cookies, local storage, or other client‑side data. The flaw is a classic web cross‑site scripting weakness, exposing the application to client‑side code injection.

Affected Systems

The issue affects Vue I18n distributed by intlify. Vulnerable releases include 9.14.5 and 10.0.8 (no longer supported), versions 11.1.10 through 11.4.14, and 12.0.0‑alpha.4 through 12.0.0‑alpha.5. The i18n‑t rendering path is not impacted, but any translation rendering with v‑html and escapeParameter enabled is vulnerable.

Risk and Exploitability

The CVSS score of 7.2 categorises the vulnerability as high severity. EPSS data is not available, and it is not listed in CISA’s KEV catalog, but the lack of mitigation in affected releases means that the weakness can be leveraged in any deployment that uses translations as raw HTML. Attackers can plant the malicious srcdoc content in translation files or dynamically injected strings; no privileged user interaction is required beyond viewing the page. Because the flaw is purely client‑side, exploitation is straightforward for anyone who can influence translation content. The combined factors signal a moderate‑to‑high risk that warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Vue I18n to version 11.4.14 or later (12.0.0‑alpha.5 or newer) to remove the vulnerability.
  • If possible, disable rendering of translation strings as HTML (remove v-html or set escapeParameter to false) to eliminate the attack surface.
  • Validate or escape any dynamically supplied translation text according to CWE‑79 best practices before injecting it into the DOM.

Generated by OpenCVE AI on October 28, 2026 at 19:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-83rm-6c8r-g728 Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Intlify
Intlify vue-i18n
Vendors & Products Intlify
Intlify vue-i18n
Type Values Removed Values Added
Description Vue I18n is the internationalization plugin for Vue.js. From 11.1.10 until 11.4.14 and from 12.0.0-alpha.4 until 12.0.0-alpha.5, sanitizeTranslatedHtml() escapes markup and event-handler text inside an iframe srcdoc value but leaves the srcdoc attribute active. Browsers decode the character references and parse the value as a same-origin nested HTML document, allowing attacker-controlled parameters or translation content placed in srcdoc to execute script when applications enable escapeParameter and render translations as HTML through v-html. Versions 9.14.5 and 10.0.8 are also affected and are no longer supported, while i18n-t rendering is not affected. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.
Title Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
Weaknesses CWE-116
CWE-79
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 29, 2026, 8:55 PM
Reserved
Oct 27, 2026, 8:13 PM
Status
Awaiting Analysis
Published
Oct 28, 2026, 7:17 PM
Modified
Oct 29, 2026, 9:17 PM
Severity
Moderate
Public date
Oct 28, 2026, 6:23 PM