Low

Vue I18n: `escapeParameter` does not escape named values when the same call also passes a list

  • Disclosed: 28.10.2026
  • Updated: 28.10.2026 23:17

Summary

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.

Details

escapeParams() in packages/core-base/src/translate.ts (v11.4.13):

ts
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.

PoC

js
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>' })
// &lt;b&gt;x&lt;&#x2F;b&gt;      escaped

t('withList', ['a'], { named: { name: '<b>x</b>' } })
// a <b>x</b>                   not escaped (v11.4.13)

Impact

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).

Patches

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.

Workarounds

  • Do not pass list and named values in the same call when escapeParameter is enabled.
  • Do not render translations that can contain untrusted values with v-html. Use component interpolation (<i18n-t>) instead.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @intlify/core >= 9.0.0-beta.10, < 11.4.14, >= 12.0.0-alpha.1, < 12.0.0-alpha.5 11.4.14, 12.0.0-alpha.5
npm package @intlify/core-base >= 9.0.0-beta.12, < 11.4.14, >= 12.0.0-alpha.1, < 12.0.0-alpha.5 11.4.14, 12.0.0-alpha.5
npm package @intlify/vue-i18n-core >= 9.2.0-alpha.7, < 11.4.14, >= 12.0.0-alpha.1, < 12.0.0-alpha.5 11.4.14, 12.0.0-alpha.5
npm package petite-vue-i18n >= 9.2.0-alpha.7, < 11.4.14, >= 12.0.0-alpha.1, < 12.0.0-alpha.5 11.4.14, 12.0.0-alpha.5
npm package vue-i18n >= 9.0.0-beta.5, < 11.4.14, >= 12.0.0-alpha.1, < 12.0.0-alpha.5 11.4.14, 12.0.0-alpha.5

References

CVSS score -
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
Weakness (CWE)
CWE-116, CWE-79
Platform
npm
Package
@intlify/core, @intlify/core-base, @intlify/vue-i18n-core
Disclosed
28.10.2026
Updated
28.10.2026 23:17

Sources and licenses

OSV / GitHub Advisory Database - GHSA-8rc2-428q-7ww3 - CC BY 4.0

Vulnerability history: @intlify/core

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
12.2024 10.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 2
  • Low 1

Disclosures per year

  1. 2024: 1
  2. 2025: 2
  3. 2026: 1
  1. Vue I18n: `escapeParameter` does not escape named values when the same call also passes a list this entry
    Low CVE-2026-118256 >= 9.0.0-beta.10, < 11.4.14, >= 12.0.0-alpha.1, < 12.0.0-alpha.5 11.4.14, 12.0.0-alpha.5
  2. Medium CVE-2025-53892 >= 9.0.0, < 9.14.5, >= 10.0.0, < 10.0.8, >= 11.0.0, < 11.1.10 9.14.5, 10.0.8, 11.1.10
  3. High CVE-2025-27597 >= 9.1.0, < 9.1.11 9.1.11
  4. Medium CVE-2024-52809 >= 9.3.0, < 9.14.2, >= 10.0.0, < 10.0.5 9.14.2, 10.0.5

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.