Skip to content

Update dependency vue-i18n to v11.4.14 [SECURITY] - #4280

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-vue-i18n-vulnerability
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-vue-i18n-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
vue-i18n (source) 11.3.2 → 11.4.14 age confidence

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

CVE-2026-118257 / GHSA-83rm-6c8r-g728

More information

Details

Summary

When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n passes the translated string through sanitizeTranslatedHtml(). The sanitizer escapes < and > in attribute values and neutralizes event handler attributes such as onerror, but it does not handle the srcdoc attribute of <iframe>.

The value of srcdoc is an HTML document: the browser decodes the character references in it and parses the result as a nested document in the same origin. The escaping and the neutralization done by the sanitizer are both character references, so they are undone inside srcdoc. This bypasses the fix for CVE-2025-53892 (GHSA-x8qp-wqqm-57ph).

Details

sanitizeTranslatedHtml() (packages/shared/src/sanitize.ts in v11.4.13) works on the final translated string:

  1. It escapes <, >, " and ' inside quoted attribute values.
  2. It rewrites the on of event handler attributes to &#&#8203;111;n.
  3. It replaces javascript: URLs in href, src, action and formaction with about:blank.

Inside srcdoc, steps 1 and 2 only produce character references, which the browser decodes before parsing the value as a document. Markup inside srcdoc therefore survives the sanitizer, with escaping or without it.

This can be reached in three ways:

  • A parameter inside srcdoc. With a message such as <iframe srcdoc="{content}"></iframe>, escapeParameter escapes content into character references, and the browser decodes them again.
  • Markup in a message. A message that contains an <iframe srcdoc="..."> keeps it after sanitizing. The documentation asks not to use HTML messages with content from users, but it also says that the sanitizer neutralizes event handlers in the final HTML.
  • Together with GHSA-8rc2-428q-7ww3. When a call passes a list and named values, the named values are not escaped. An <iframe srcdoc="..."> in a named value then reaches the sanitizer as markup, even with an ordinary message such as {0} {name}.
PoC
import { createI18n } from 'vue-i18n'

const i18n = createI18n({
  legacy: false,
  locale: 'en',
  escapeParameter: true,
  messages: {
    en: { message: '<iframe srcdoc="<b>x</b>"></iframe>' }
  }
})

console.log(i18n.global.t('message'))
// v11.4.13: <iframe srcdoc="&lt;b&gt;x&lt;/b&gt;"></iframe>

The browser decodes the value and renders <b>x</b> as a separate document inside the <iframe>, in the same origin as the page. Any markup in that position is parsed the same way.

Impact

Applications are affected when they enable escapeParameter, render translations as HTML (for example with v-html), and one of the following applies:

  • an untrusted value is passed as a parameter that the message places inside srcdoc,
  • message content is not fully trusted (for example crowdsourced or stored translations), or
  • untrusted named values are passed in the same call as a list (GHSA-8rc2-428q-7ww3).

An attacker can then run script in the origin of the application (DOM-based XSS), despite the sanitizer.

Rendering through <i18n-t> is not affected, since it does not render translations as HTML.

Patches

Fixed in 11.4.14 and 12.0.0-alpha.5. The sanitizer now neutralizes the srcdoc attribute itself, in the same way as event handler attributes.

v9 and v10 are no longer supported and will not be fixed. Please migrate to v11.

Workarounds
  • Do not render translations that can contain untrusted content with v-html. Use component interpolation (<i18n-t>) instead.
  • Do not put srcdoc in translation messages, and do not pass values into it.
References

Severity

  • CVSS Score: 7.2 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


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

CVE-2026-118256 / GHSA-8rc2-428q-7ww3

More information

Details

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

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

Severity

  • CVSS Score: 2.1 / 10 (Low)
  • Vector String: 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

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

intlify/vue-i18n (vue-i18n)

v11.4.14

Compare Source

What's Changed
🔒 Security Fixes
👕 Refactoring
  • refactor(core-base): extract the resolved message format check by @​kazupon in #​2674
  • refactor(vue-i18n-core): remove dead branches in getCoreContext() by @​kazupon in #​2675
  • refactor(vue-i18n-core): share the fallbackContext handling in the composer by @​kazupon in #​2676
  • refactor(vue-i18n-core): simplify flat JSON handling in setLocaleMessage / mergeLocaleMessage by @​kazupon in #​2677
  • refactor(core-base): give the compile cache a proper type by @​kazupon in #​2678

Full Changelog: intlify/vue-i18n@v11.4.13...v11.4.14

v11.4.13

Compare Source

What's Changed
⚡ Improvement Features
  • fix(core-base): map locale unions without the UnionToTuple round-trip by @​kazupon in #​2651

Full Changelog: intlify/vue-i18n@v11.4.12...v11.4.13

v11.4.12

Compare Source

What's Changed
🐛 Bug Fixes

Full Changelog: intlify/vue-i18n@v11.4.10...v11.4.12

v11.4.10

Compare Source

What's Changed
🐛 Bug Fixes

Full Changelog: intlify/vue-i18n@v11.4.9...v11.4.10

v11.4.9

Compare Source

What's Changed
🐛 Bug Fixes
  • fix(core-base): invalidate locale chain cache when fallback changes by @​kazupon in #​2577
  • fix(core-base): fallbackWithSimple uses map keys and skips default by @​kazupon in #​2580
⚡ Improvement Features
👕 Refactoring

Full Changelog: intlify/vue-i18n@v11.4.8...v11.4.9

v11.4.8

Compare Source

What's Changed

👕 Refactoring

Full Changelog: intlify/vue-i18n@v11.4.7...v11.4.8

v11.4.7

Compare Source

Full Changelog: intlify/vue-i18n@v11.4.6...v11.4.7

v11.4.6

Compare Source

Full Changelog: intlify/vue-i18n@v11.4.5...v11.4.6

v11.4.5

Compare Source

What's Changed

⚡ Improvement Features
  • fix(core-base): respect part option when format key is omitted in number/datetime by @​kazupon in #​2522

Full Changelog: intlify/vue-i18n@v11.4.4...v11.4.5

v11.4.4

Compare Source

What's Changed

⚡ Improvement Features

Full Changelog: intlify/vue-i18n@v11.4.3...v11.4.4

v11.4.3

Compare Source

What's Changed

💥 Breaking Changes
🔒 Security Fixes

Full Changelog: intlify/vue-i18n@v11.4.2...v11.4.3

v11.4.2

Compare Source

What's Changed

⚡ Improvement Features

Full Changelog: intlify/vue-i18n@v11.4.1...v11.4.2

v11.4.1

Compare Source

What's Changed

⚡ Improvement Features

Full Changelog: intlify/vue-i18n@v11.4.0...v11.4.1

v11.4.0

Compare Source

What's Changed
🌟 Features

Full Changelog: intlify/vue-i18n@v11.3.2...v11.4.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Deploying piped with  Cloudflare Pages  Cloudflare Pages

Latest commit: c559e10
Status: ✅  Deploy successful!
Preview URL: https://528c161e.piped.pages.dev
Branch Preview URL: https://renovate-npm-vue-i18n-vulner.piped.pages.dev

View logs

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@renovate
renovate Bot force-pushed the renovate/npm-vue-i18n-vulnerability branch from fc36c38 to c559e10 Compare November 25, 2026 20:01

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant