Vulnerabilities in pkg:npm/vue-i18n
PACKAGECVE-2026-144406 is a MODERATE (CVSS 5.4) escapeparameter sanitizer leaves elements open, vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Vue I18n libraries in the npm ecosystem. The issue involves escapeparameter sanitizer leaves elements open, so a translation can change how the rest of an ssr page is parsed. Remediation is available by upgrading affected packages to version 11.4.22, 12.0.0-alpha.13.
pkg:npm/vue-i18n
Vulnerability advisories affecting package pkg:npm/vue-i18n. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-786j-gfwp-vhm5 | CVE-2026-144406 | MODERATE | Vue I18n: escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed |
| GHSA-9qc3-h48f-7h96 | CVE-2026-144408 | HIGH | Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values |
| GHSA-7356-3q55-jvxm | CVE-2026-144407 | HIGH | Vue I18n: sanitizeTranslatedHtml allows DOM XSS via javascript: URLs after an unquoted attribute value that contains a quote |
| GHSA-mp7h-j8pr-w35w | CVE-2026-144409 | HIGH | Vue I18n: Prototype Pollution via the `locale` argument of `mergeLocaleMessage`, `mergeDateTimeFormat` and `mergeNumberFormat` |
| GHSA-p2ph-7g93-hw3m | CVE-2025-27597 | HIGH | Vue I18n Allows Prototype Pollution in `handleFlatJson` |
| GHSA-x8qp-wqqm-57ph | CVE-2025-53892 | MODERATE | vue-i18n's escapeParameterHtml does not prevent DOM-based XSS through its tag attributes |
| GHSA-hjwq-mjwj-4x6c | CVE-2024-52810 | MODERATE | @intlify/shared Prototype Pollution vulnerability |
| GHSA-9r9m-ffp6-9x4v | CVE-2024-52809 | MODERATE | vue-i18n has cross-site scripting vulnerability with prototype pollution |
CVE-2026-144406 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-144406
To remediate this vulnerability, upgrade all affected Vue I18n dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install vue-i18n@Latest secure release
npm install vue-i18n@Latest secure release
npm install vue-i18n@11.4.22
npm install vue-i18n@12.0.0-alpha.13
npm install petite-vue-i18n@Latest secure release
npm install petite-vue-i18n@Latest secure release
npm install petite-vue-i18n@11.4.22
npm install petite-vue-i18n@12.0.0-alpha.13
npm install @intlify/core-base@Latest secure release
npm install @intlify/core-base@Latest secure release
npm install @intlify/core-base@11.4.22
npm install @intlify/core-base@12.0.0-alpha.13
npm install @intlify/core@Latest secure release
npm install @intlify/core@Latest secure release
npm install @intlify/core@11.4.22
npm install @intlify/core@12.0.0-alpha.13
npm install @intlify/vue-i18n-core@Latest secure release
npm install @intlify/vue-i18n-core@Latest secure release
npm install @intlify/vue-i18n-core@11.4.22
npm install @intlify/vue-i18n-core@12.0.0-alpha.13
npm install @intlify/shared@Latest secure release
npm install @intlify/shared@Latest secure release
npm install @intlify/shared@11.4.22
npm install @intlify/shared@12.0.0-alpha.13
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls vue-i18n
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-144406, inspect your project dependencies using npm:
npm ls vue-i18n
Analyze the terminal output to locate any version of Vue I18n in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 11.4.22), your application is affected.
Note: The npm ls vue-i18n command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Vue I18n, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-144406 Affected Vue I18n Versions
24 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
vue-i18n
|
npm |
9.14.5
All 1 versions
9.14.5
|
None specified
|
|
vue-i18n
|
npm |
10.0.8
All 1 versions
10.0.8
|
None specified
|
|
vue-i18n
|
npm |
≥ 11.1.10
< 11.4.22
|
11.4.22
|
|
vue-i18n
|
npm |
≥ 12.0.0-alpha.4
< 12.0.0-alpha.13
|
12.0.0-alpha.13
|
|
petite-vue-i18n
|
npm |
9.14.5
All 1 versions
9.14.5
|
None specified
|
|
petite-vue-i18n
|
npm |
10.0.8
All 1 versions
10.0.8
|
None specified
|
|
petite-vue-i18n
|
npm |
≥ 11.1.10
< 11.4.22
|
11.4.22
|
|
petite-vue-i18n
|
npm |
≥ 12.0.0-alpha.4
< 12.0.0-alpha.13
|
12.0.0-alpha.13
|
|
@intlify/core-base
|
npm |
9.14.5
All 1 versions
9.14.5
|
None specified
|
|
@intlify/core-base
|
npm |
10.0.8
All 1 versions
10.0.8
|
None specified
|
|
@intlify/core-base
|
npm |
≥ 11.1.10
< 11.4.22
|
11.4.22
|
|
@intlify/core-base
|
npm |
≥ 12.0.0-alpha.4
< 12.0.0-alpha.13
|
12.0.0-alpha.13
|
|
@intlify/core
|
npm |
9.14.5
All 1 versions
9.14.5
|
None specified
|
|
@intlify/core
|
npm |
10.0.8
All 1 versions
10.0.8
|
None specified
|
|
@intlify/core
|
npm |
≥ 11.1.10
< 11.4.22
|
11.4.22
|
|
@intlify/core
|
npm |
≥ 12.0.0-alpha.4
< 12.0.0-alpha.13
|
12.0.0-alpha.13
|
|
@intlify/vue-i18n-core
|
npm |
9.14.5
All 1 versions
9.14.5
|
None specified
|
|
@intlify/vue-i18n-core
|
npm |
10.0.8
All 1 versions
10.0.8
|
None specified
|
|
@intlify/vue-i18n-core
|
npm |
≥ 11.1.10
< 11.4.22
|
11.4.22
|
|
@intlify/vue-i18n-core
|
npm |
≥ 12.0.0-alpha.4
< 12.0.0-alpha.13
|
12.0.0-alpha.13
|
|
@intlify/shared
|
npm |
9.14.5
All 1 versions
9.14.5
|
None specified
|
|
@intlify/shared
|
npm |
10.0.8
All 1 versions
10.0.8
|
None specified
|
|
@intlify/shared
|
npm |
≥ 11.1.10
< 11.4.22
|
11.4.22
|
|
@intlify/shared
|
npm |
≥ 12.0.0-alpha.4
< 12.0.0-alpha.13
|
12.0.0-alpha.13
|
References
Frequently Asked Questions
What is CVE-2026-144406?
Which Vue I18n versions are affected?
What version fixes CVE-2026-144406?
Is vue-i18n affected?
Is petite-vue-i18n affected?
What is the CVSS score of CVE-2026-144406?
What CWE is associated with CVE-2026-144406?
How can I check npm dependencies for CVE-2026-144406?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-786j-gfwp-vhm5",
"modified" : "2026-12-04T22:15:29Z",
"published" : "2026-12-04T22:15:28Z",
"aliases" : [ "CVE-2026-144406" ],
"summary" : "Vue I18n: escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed",
"details" : "### Summary\n\nWhen `escapeParameter` is enabled (`escapeParameterHtml` in the Legacy API), Vue I18n sanitizes the translated HTML with `sanitizeTranslatedHtml()`. The sanitizer reads tags in the same way as the HTML tokenizer, but it does not follow how elements open and close. An element that a translation leaves open, or an end tag that closes an element outside the translation, stays in the result.\n\nWhen the page is rendered on the server (SSR), the rest of the page follows the translation in the same HTML, and the browser parses it as a part of what is still open. An unclosed `<template>` hides the rest of the page, and an unclosed `<select>` takes it in. With `<object><svg>`, `<table><svg>` or `<math><mi><svg>`, the rest of the page is parsed as SVG, and a later inline `<script>` becomes an SVG script, whose character references are decoded before it runs. Text that the page puts in such a script as data, such as `"` in a serialized state, can then end a JavaScript string, and run in the origin of the application.\n\n### Details\n\n`sanitizeTranslatedHtml()` in `packages/shared/src/sanitize.ts` turns a tag, a comment, or an element whose content is text (such as `<textarea>`) into text when it is not closed at the end of the translation (GHSA-9qc3-h48f-7h96). Other elements are kept even when they are not closed, and end tags are kept even when they close no element of the translation.\n\nIn the HTML parser, an end tag closes an element only when the element is in scope. `<object>`, `<table>`, `<template>`, MathML `<mi>` and similar elements are boundaries of the scope, so the end tags of the element that holds the translation, and of the application after it, are ignored while they are open. `<svg>` inside them keeps the rest of the page in SVG until a start tag such as `<div>`, `<p>` or `<span>` leaves SVG.\n\nSome shapes need no boundary:\n\n- In a `<span>`, `<a>`, `<small>` or similar element, `<div><svg>` or `<li><svg>` keeps `<svg>` open, because the end tag of the container is ignored while a special element such as `<div>` is open.\n- In an `<a>`, `</a><svg>` closes the container, and opens `<svg>` after it.\n- In an SVG `<foreignObject>` of the page, `</span></foreignObject>` closes the `<foreignObject>` of the page without opening any element.\n\nAn inline `<script>` in SVG is an SVG script. Its content is parsed as markup, so `"` becomes `\"` before the script runs.\n\nBefore 11.4.21 and 12.0.0-alpha.12, such markup can also come from an interpolation parameter that is not a string, even when the messages are trusted (GHSA-4fx6-3h3f-fh66).\n\nRendering on the client (`v-html`, which uses `innerHTML`) is not affected: the browser parses the translation as a fragment, and closes what is open at its end.\n\n### PoC\n\n```js\nimport { createI18n } from 'vue-i18n'\n\nconst i18n = createI18n({\n legacy: false,\n locale: 'en',\n escapeParameter: true,\n messages: {\n en: {\n footer: '© Example<object><svg>',\n greeting: 'Say "-alert(document.cookie)-" hi'\n }\n }\n})\n```\n\nThe footer is rendered on the server with `<small v-html=\"t('footer')\"></small>`, and the page puts its translations into an inline state after the application:\n\n```html\n<footer><small>© Example<object><svg></small></footer>\n<script>window.__STATE__ = {\"greeting\":\"Say "-alert(document.cookie)-" hi\"}</script>\n```\n\n`</small>` and `</footer>` are ignored while `<object>` is open, so the `<script>` is parsed as an SVG script, `"` becomes `\"`, and `alert(document.cookie)` runs in the origin of the application. This was confirmed on Chromium, Chrome and WebKit with 11.4.20 and 12.0.0-alpha.11.\n\n### Impact\n\nApplications are affected when they render translations as HTML on the server (SSR, including SSG and prerendering) with `escapeParameter` enabled, and an attacker can change the translations (for example crowdsourced or stored translations), or, before 11.4.21 and 12.0.0-alpha.12, pass a parameter that is not a string.\n\nWhen an inline script after the translation holds text that the attacker can change (for example the translations in a serialized state), and no element that leaves SVG (such as `<div>`, `<p>` or `<span>`) comes between them, the attacker can run script in the origin of the application. Otherwise, the attacker can still hide the rest of the page (`<template>`), take it into a `<select>` or an `<object>`, or make the inputs of a later form belong to a form that the translation opened (`<form action>`).\n\nPages rendered only on the client are not affected.\n\n### Patches\n\nFixed in 11.4.22 and 12.0.0-alpha.13. `sanitizeTranslatedHtml()` now follows how browsers open and close elements, including SVG and MathML: an end tag that closes no element of the translation is removed, the elements inside an element that an end tag closes are closed before it, and the elements that are still open at the end of the translation are closed. A `<form>` that the translation does not close is turned into text, and so are `<foreignObject>`, `<desc>`, `<mi>` and similar SVG and MathML elements outside SVG and MathML.\n\nWell-formed translations are not changed.\n\nv9 and v10 are no longer supported and will not be fixed. Please migrate to v11.\n\n### Workarounds\n\n- Close every element in translations that are rendered with `v-html`, and do not accept translations from untrusted sources.\n- Do not render translations from untrusted sources with `v-html` on the server. Use component interpolation (`<i18n-t>`) instead.\n\n### Related\n\n- [GHSA-9qc3-h48f-7h96](https://github.com/intlify/vue-i18n/security/advisories/GHSA-9qc3-h48f-7h96): an earlier gap in the same function for pages rendered on the server (unclosed tags)\n- [GHSA-4fx6-3h3f-fh66](https://github.com/intlify/vue-i18n/security/advisories/GHSA-4fx6-3h3f-fh66): another way to put markup into a translation, before 11.4.21 and 12.0.0-alpha.12",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "vue-i18n"
},
"versions" : [ "9.14.5" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "vue-i18n"
},
"versions" : [ "10.0.8" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "vue-i18n"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.1.10"
}, {
"fixed" : "11.4.22"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "vue-i18n"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.0.0-alpha.4"
}, {
"fixed" : "12.0.0-alpha.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "petite-vue-i18n"
},
"versions" : [ "9.14.5" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "petite-vue-i18n"
},
"versions" : [ "10.0.8" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "petite-vue-i18n"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.1.10"
}, {
"fixed" : "11.4.22"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "petite-vue-i18n"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.0.0-alpha.4"
}, {
"fixed" : "12.0.0-alpha.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/core-base"
},
"versions" : [ "9.14.5" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/core-base"
},
"versions" : [ "10.0.8" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/core-base"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.1.10"
}, {
"fixed" : "11.4.22"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/core-base"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.0.0-alpha.4"
}, {
"fixed" : "12.0.0-alpha.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/core"
},
"versions" : [ "9.14.5" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/core"
},
"versions" : [ "10.0.8" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.1.10"
}, {
"fixed" : "11.4.22"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.0.0-alpha.4"
}, {
"fixed" : "12.0.0-alpha.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/vue-i18n-core"
},
"versions" : [ "9.14.5" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/vue-i18n-core"
},
"versions" : [ "10.0.8" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/vue-i18n-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.1.10"
}, {
"fixed" : "11.4.22"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/vue-i18n-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.0.0-alpha.4"
}, {
"fixed" : "12.0.0-alpha.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/shared"
},
"versions" : [ "9.14.5" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/shared"
},
"versions" : [ "10.0.8" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/shared"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.1.10"
}, {
"fixed" : "11.4.22"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/shared"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.0.0-alpha.4"
}, {
"fixed" : "12.0.0-alpha.13"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/security/advisories/GHSA-786j-gfwp-vhm5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-144406"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/pull/2793"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/commit/813da5eee6b755c544755d86c341c84fbbecac9f"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/commit/a3b3d0a8e81d2b2b7a39b197d8e359fe27e1e0af"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/intlify/vue-i18n"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/releases/tag/v11.4.22"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/releases/tag/v12.0.0-alpha.13"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-116", "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-04T22:15:28Z",
"nvd_published_at" : "2026-12-03T20:17:47Z"
}
}