Live › vulnerability › CVE-2026-118256
Go to dashboardWhen escapeParameter is enabled and a translation call passes both list and named values, named values are not HTML-escaped, so untrusted named values can inject markup into translations rendered as HTML. The sources say this can enable phishing links, forms and script execution when combined with a sanitizer bypass or on releases without the sanitizer.
Summary written from the sources below. Check the originals before acting.
First seen by InfraStack 2026-10-28 19:34 UTC. All times on this page are UTC.
Applications using Vue I18n with escapeParameter enabled that render translation output as HTML and pass untrusted named values alongside list values. Apps that only use plain text output or do not feed user input into translation parameters are much less exposed; the sources do not say whether the default configuration enables escapeParameter.
| Product | Ecosystem | Affected | Fixed in |
|---|---|---|---|
| vue-i18n | npm | >= 9.0.0-beta.5, < 11.4.14 | 11.4.14 |
| vue-i18n | npm | >= 12.0.0-alpha.1, < 12.0.0-alpha.5 | 12.0.0-alpha.5 |
| @intlify/core | npm | >= 9.0.0-beta.10, < 11.4.14 | 11.4.14 |
| @intlify/core | npm | >= 12.0.0-alpha.1, < 12.0.0-alpha.5 | 12.0.0-alpha.5 |
| @intlify/core-base | npm | >= 9.0.0-beta.12, < 11.4.14 | 11.4.14 |
| @intlify/core-base | npm | >= 12.0.0-alpha.1, < 12.0.0-alpha.5 | 12.0.0-alpha.5 |
| petite-vue-i18n | npm | >= 9.2.0-alpha.7, < 11.4.14 | 11.4.14 |
| petite-vue-i18n | npm | >= 12.0.0-alpha.1, < 12.0.0-alpha.5 | 12.0.0-alpha.5 |
| @intlify/vue-i18n-core | npm | >= 9.2.0-alpha.7, < 11.4.14 | 11.4.14 |
| @intlify/vue-i18n-core | npm | >= 12.0.0-alpha.1, < 12.0.0-alpha.5 | 12.0.0-alpha.5 |
vue-i18n in the lockfile or with npm ls vue-i18n; affected range is 9.0.0-beta.5 up to 11.4.14 and 12.0.0-alpha.5 (not including).escapeParameter or escapeParameterHtml together with v-html or $t output rendered as HTML.vue-i18n to 11.4.14 or later (or 12.0.0-alpha.5 for the 12 line).Each row is the first time that source carried this signal. The analyst’s rows are its own findings.
When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n escapes the interpolation parameters before formatting a message. escapeParams() escapes either the list values or the named values, but not both: the two branches are joined by else. When a single call passes both, for example t(key, ['...'], { named: { ... } }), the named values reach the message without being escaped.
escapeParams() in packages/core-base/src/translate.ts (v11.4.13):
function escapeParams(options: TranslateOptions) {
if (isArray(options.list)) {
options.list = options.list.map(item => (isString(item) ? escapeHtml(item) : item))
} else if (isObject(options.named)) {
// ...escapes the named values
}
}
t(key, list, options) is a public overload, and TranslateOptions has a named field, so a call can carry both. The list is checked first, and the named values are then left as they are.
The translated string still goes through sanitizeTranslatedHtml() (added for CVE-2025-53892), which neutralizes event handler attributes and javascript: URLs. Other markup in the named values, such as links and forms, is inserted as is. Before the fix for GHSA-83rm-6c8r-g728, an <iframe srcdoc> in a named value also passes the sanitizer, and script runs. Versions without the sanitizer (before 9.14.5, 10.0.8 and 11.1.10, and 12.0.0-alpha.1 to alpha.3) insert the named values as HTML without any further check.
<i18n-t> is not affected: it passes either list or named values, never both, and it does not render translations as HTML.
import { createI18n } from 'vue-i18n'
const i18n = createI18n({
legacy: false,
locale: 'en',
escapeParameter: true,
messages: {
en: { withList: '{0} {name}', withoutList: '{name}' }
}
})
const t = i18n.global.t
t('withoutList', { name: '<b>x</b>' })
// <b>x</b> escaped
t('withList', ['a'], { named: { name: '<b>x</b>' } })
// a <b>x</b> not escaped (v11.4.13)
Applications are affected when they enable escapeParameter, render translations as HTML (for example with v-html), and pass untrusted named values in the same call as a list. The named values are inserted as markup: phishing links, forms, or layout changes. Together with GHSA-83rm-6c8r-g728, or on versions without the sanitizer, this leads to script execution (DOM-based XSS).
Fixed in 11.4.14 and 12.0.0-alpha.5. escapeParams() now escapes both the list and the named values.
The fix also stops rewriting the named object that the caller passes. Before, the values of that object were replaced with their escaped form, so a second call with the same object escaped them twice.
v9 and v10 are no longer supported and will not be fixed. Please migrate to v11.
escapeParameter is enabled.v-html. Use component interpolation (<i18n-t>) instead.This page as .md · .json · in your agent: get_signal("CVE-2026-118256")
NVD data is provided by NIST and is public domain · GitHub Advisory Database, CC-BY 4.0. Posts quoted belong to their authors.