High · 7.2 Node.js & npm CVE-2026-118256 GHSA-8rc2-428q-7ww3 CVE-2026-118257 GHSA-83rm-6c8r-g728
Two Vue I18n XSS Flaws Let escapeParameter Protection Be Bypassed
Two related cross-site scripting issues in Vue I18n (CVE-2026-118256 and CVE-2026-118257) allow attacker-controlled translation values to bypass the escapeParameter/escapeParameterHtml sanitizer under specific conditions. Both are fixed in Vue I18n 11.4.14 and 12.0.0-alpha.5.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
Two cross-site scripting (XSS) vulnerabilities have been disclosed in Vue I18n, the internationalization plugin for Vue.js. Both affect the escapeParameter option (called escapeParameterHtml in the Legacy API), which is intended to sanitize untrusted values inserted into translated HTML. CVE-2026-118256 and CVE-2026-118257 describe distinct ways this sanitizer can fail to neutralize attacker-controlled content, allowing markup or, in one case, script execution to reach the rendered page. Both issues are fixed in the same release.
What happened
CVE-2026-118256 affects the escapeParameter / escapeParameterHtml sanitizer in Vue I18n. When a single translation call supplies both a list of positional values and a set of named values, the sanitizer's escapeParams() function only processes the list branch, leaving named interpolation values unescaped. If an application renders the translation output as HTML and includes untrusted named values alongside a list, an attacker can inject markup such as phishing links, fake forms, or layout changes. The advisory states this can also enable script execution when combined with the srcdoc sanitizer bypass described in CVE-2026-118257, or on releases that do not include the HTML sanitizer at all. CVE-2026-118257 is a separate issue in the same sanitizer. The sanitizeTranslatedHtml() function escapes markup and event-handler text that appears inside an iframe srcdoc value, but it leaves the srcdoc attribute itself active. Browsers decode the escaped character references and parse the resulting value as a same-origin nested HTML document. This means attacker-controlled parameters or translation content placed inside a srcdoc attribute can execute script when an application has escapeParameter enabled and renders translations as HTML via v-html. The advisory notes that rendering through the i18n-t component is not affected by this issue.
Technical cause
Both vulnerabilities are classified as CWE-79 (Improper Neutralization of Input During Web Page Generation / Cross-site Scripting) and stem from incomplete coverage in Vue I18n's built-in HTML sanitization logic rather than a single root cause. CVE-2026-118256 results from escapeParams() only sanitizing list-style interpolation values, missing named values when both are present in the same call. CVE-2026-118257 results from sanitizeTranslatedHtml() escaping the contents of a srcdoc value without neutralizing the srcdoc attribute mechanism itself, so browsers still parse the decoded content as embedded HTML.
Why it matters
Vue I18n's escapeParameter option exists specifically so developers can safely render translation strings that include untrusted, user-supplied values as HTML. Both flaws undermine that protection under identifiable conditions: mixed list/named interpolation calls (CVE-2026-118256), and srcdoc-based content (CVE-2026-118257). The second issue is the more severe of the two, since it can lead directly to script execution rather than markup injection alone, and does not require user interaction beyond the page loading the affected translation.
Who is affected
Applications are affected if they use Vue I18n (or the related packages @intlify/core, @intlify/core-base, @intlify/vue-i18n-core, petite-vue-i18n, or @intlify/shared) with escapeParameter (or escapeParameterHtml) enabled, and render translation output as HTML — for example via v-html — while passing untrusted interpolation values. CVE-2026-118256 specifically applies when a translation call mixes list and named values. CVE-2026-118257 specifically applies when translation content or parameters can place a srcdoc attribute into the rendered HTML; the advisory notes that rendering through the i18n-t component is not affected by this particular issue.
Affected versions
CVE-2026-118256 affects vue-i18n, @intlify/core, @intlify/core-base, @intlify/vue-i18n-core, and petite-vue-i18n starting from early 9.0.0 and 9.2.0 beta/alpha releases through versions prior to 11.4.14, and the 12.0.0-alpha.1 through pre-12.0.0-alpha.5 range. CVE-2026-118257 affects the same package family starting from 11.1.10 releases through versions prior to 11.4.14, the 12.0.0-alpha.4 pre-release, and also explicitly names the standalone releases 9.14.5 and 10.0.8, which the advisory states are no longer supported. @intlify/shared is additionally listed as affected for CVE-2026-118257. Both issues are resolved in version 11.4.14 and in the 12.0.0-alpha.5 pre-release.
Fixes and mitigation
Both vulnerabilities are fixed in Vue I18n version 11.4.14 and in the 12.0.0-alpha.5 pre-release, which applies to vue-i18n, @intlify/core, @intlify/core-base, @intlify/vue-i18n-core, petite-vue-i18n, and (for CVE-2026-118257) @intlify/shared. The 9.14.5 and 10.0.8 releases affected by CVE-2026-118257 are noted as no longer supported, so upgrading to a fixed line is necessary for those deployments.
Recommended action
Update vue-i18n and any related @intlify packages (@intlify/core, @intlify/core-base, @intlify/vue-i18n-core, petite-vue-i18n, @intlify/shared) to version 11.4.14, or to the 12.0.0-alpha.5 pre-release if you are on the 12.x alpha track. If your application is on the unsupported 9.14.5 or 10.0.8 releases, plan a migration to a supported, fixed version. Review code paths that render translated strings as HTML (via v-html), particularly calls that mix list and named interpolation values, and any translation content that could introduce a srcdoc attribute, and confirm escapeParameter/escapeParameterHtml behaves as expected after upgrading.
PatchBriefing score
7.2 / 10 · High
Official CVSS: 7.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
EPSS 0.0037 (23 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- vue-i18n >= 12.0.0-alpha.1, < 12.0.0-alpha.5
- vulnerable
- vue-i18n ≥ 12.0.0-alpha.1 < 12.0.0-alpha.5
- vulnerable
- ≥ 11.4.14
- patched
- ≥ 12.0.0-alpha.5
- patched
- @intlify/core >= 12.0.0-alpha.1, < 12.0.0-alpha.5
- vulnerable
- @intlify/core ≥ 12.0.0-alpha.1 < 12.0.0-alpha.5
- vulnerable
- ≥ 11.4.14
- patched
- ≥ 12.0.0-alpha.5
- patched
- @intlify/core-base >= 12.0.0-alpha.1, < 12.0.0-alpha.5
- vulnerable
- @intlify/core-base ≥ 12.0.0-alpha.1 < 12.0.0-alpha.5
- vulnerable
- ≥ 11.4.14
- patched
- ≥ 12.0.0-alpha.5
- patched
- petite-vue-i18n >= 12.0.0-alpha.1, < 12.0.0-alpha.5
- vulnerable
- petite-vue-i18n ≥ 12.0.0-alpha.1 < 12.0.0-alpha.5
- vulnerable
- ≥ 11.4.14
- patched
- ≥ 12.0.0-alpha.5
- patched
- @intlify/vue-i18n-core >= 12.0.0-alpha.1, < 12.0.0-alpha.5
- vulnerable
- @intlify/vue-i18n-core ≥ 12.0.0-alpha.1 < 12.0.0-alpha.5
- vulnerable
- ≥ 11.4.14
- patched
- ≥ 12.0.0-alpha.5
- patched
- vue-i18n = 12.0.0-alpha.4
- vulnerable
- vue-i18n ≥ 12.0.0-alpha.4 < 12.0.0-alpha.5
- vulnerable
- vue-i18n
- vulnerable
- ≥ 11.4.14
- patched
- ≥ 12.0.0-alpha.5
- patched
- petite-vue-i18n = 12.0.0-alpha.4
- vulnerable
- petite-vue-i18n ≥ 12.0.0-alpha.4 < 12.0.0-alpha.5
- vulnerable
- petite-vue-i18n
- vulnerable
- ≥ 11.4.14
- patched
- ≥ 12.0.0-alpha.5
- patched
- @intlify/core-base = 12.0.0-alpha.4
- vulnerable
- @intlify/core-base ≥ 12.0.0-alpha.4 < 12.0.0-alpha.5
- vulnerable
- @intlify/core-base
- vulnerable
- ≥ 11.4.14
- patched
- ≥ 12.0.0-alpha.5
- patched
- @intlify/core = 12.0.0-alpha.4
- vulnerable
- @intlify/core ≥ 12.0.0-alpha.4 < 12.0.0-alpha.5
- vulnerable
- @intlify/core
- vulnerable
- ≥ 11.4.14
- patched
- ≥ 12.0.0-alpha.5
- patched
- @intlify/vue-i18n-core = 12.0.0-alpha.4
- vulnerable
- @intlify/vue-i18n-core ≥ 12.0.0-alpha.4 < 12.0.0-alpha.5
- vulnerable
- @intlify/vue-i18n-core
- vulnerable
- ≥ 11.4.14
- patched
- ≥ 12.0.0-alpha.5
- patched
- @intlify/shared = 12.0.0-alpha.4
- vulnerable
- @intlify/shared ≥ 12.0.0-alpha.4 < 12.0.0-alpha.5
- vulnerable
- @intlify/shared
- vulnerable
- ≥ 11.4.14
- patched
- ≥ 12.0.0-alpha.5
- patched
Reported fixes
Both vulnerabilities are fixed in Vue I18n version 11.4.14 and in the 12.0.0-alpha.5 pre-release, which applies to vue-i18n, @intlify/core, @intlify/core-base, @intlify/vue-i18n-core, petite-vue-i18n, and (for CVE-2026-118257) @intlify/shared. The 9.14.5 and 10.0.8 releases affected by CVE-2026-118257 are noted as no longer supported, so upgrading to a fixed line is necessary for those deployments.
How this was built
7 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
-
NVD (NIST) database
-
GitHub Advisory Database database
-
GitHub Advisory Database database
-
OSV.dev database
-
OSV.dev database
Revision history
- Published
- Generated
- Published
- Generated
- Published
- Generated