CVE-2026-118257

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

High published · updated · also known as GHSA-83RM-6C8R-G728

7.2
CVSS score out of 10 · NVD (github.com)

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.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
vue-i18n npm = 9.14.5— GitHub
vue-i18n npm = 10.0.8— GitHub
vue-i18n npm >= 11.1.10, < 11.4.1411.4.14 GitHub
vue-i18n npm = 12.0.0-alpha.412.0.0-alpha.5 GitHub
petite-vue-i18n npm = 9.14.5— GitHub
petite-vue-i18n npm = 10.0.8— GitHub
petite-vue-i18n npm >= 11.1.10, < 11.4.1411.4.14 GitHub
petite-vue-i18n npm = 12.0.0-alpha.412.0.0-alpha.5 GitHub
@intlify/core-base npm = 9.14.5— GitHub
@intlify/core-base npm = 10.0.8— GitHub
@intlify/core-base npm >= 11.1.10, < 11.4.1411.4.14 GitHub
@intlify/core-base npm = 12.0.0-alpha.412.0.0-alpha.5 GitHub
@intlify/core npm = 9.14.5— GitHub
@intlify/core npm = 10.0.8— GitHub
@intlify/core npm >= 11.1.10, < 11.4.1411.4.14 GitHub
@intlify/core npm = 12.0.0-alpha.412.0.0-alpha.5 GitHub
@intlify/vue-i18n-core npm = 9.14.5— GitHub
@intlify/vue-i18n-core npm = 10.0.8— GitHub
@intlify/vue-i18n-core npm >= 11.1.10, < 11.4.1411.4.14 GitHub
@intlify/vue-i18n-core npm = 12.0.0-alpha.412.0.0-alpha.5 GitHub
@intlify/shared npm = 9.14.5— GitHub
@intlify/shared npm = 10.0.8— GitHub
@intlify/shared npm >= 11.1.10, < 11.4.1411.4.14 GitHub
@intlify/shared npm = 12.0.0-alpha.412.0.0-alpha.5 GitHub

References