npm
CVE-2026-118256
Vue I18n: `escapeParameter` does not escape named values when the same call also passes a list
- Severity
- Low
- Published
- 28 Oct 2026
- Last changed
- 28 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 11.4.14, 12.0.0-alpha.5
- Exploit chance
- 0.5% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 24 Nov 2026
- Also known as
- GHSA-8rc2-428q-7ww3
- Sources
- OSV.dev and GitHub
Description
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):
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 in a named value also passes the sanitizer, and script runs.
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 () instead.
Affected software
| Software | Affected versions |
|---|---|
@intlify/corenpm · osv:npm:@intlify/core |
|
@intlify/core-basenpm · osv:npm:@intlify/core-base |
|
@intlify/vue-i18n-corenpm · osv:npm:@intlify/vue-i18n-core |
|
petite-vue-i18nnpm · osv:npm:petite-vue-i18n |
|
vue-i18nnpm · osv:npm:vue-i18n |
|
About @intlify/core
- Weekly downloads (npm)
- 1,092,427npm, 24 Nov 2026
Vulnerabilities in @intlify/core
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-118257Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messagesHigh 7.2 28 Oct 2026
About @intlify/core-base
- Weekly downloads (npm)
- 5,059,345npm, 24 Nov 2026
Vulnerabilities in @intlify/core-base
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-118257Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messagesHigh 7.2 28 Oct 2026
About @intlify/vue-i18n-core
- Weekly downloads (npm)
- 5,230npm, 24 Nov 2026
Vulnerabilities in @intlify/vue-i18n-core
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-118257Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messagesHigh 7.2 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-118256
- GitHub Advisory Database https://github.com/advisories/GHSA-8rc2-428q-7ww3