Every CVESearch/Get API key

CVE-2026-144406

vue-i18n escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed

Explain with AI
ChatGPTClaudeGoogle AI
Severity
5.4Medium
Network attack, no privileges, no user interactionCVSS 3.1, CVE List
Exploitation
Proof of concept
CISA reports one, no source links it
Exploit chance
0.65% in 30 days
Percentile52nd
EPSS, scored
Listed fix
11.4.22 for vue-i18n
From GitHub Advisories1 more listed version, 5 other affected packages

Overview

Vue I18n is the internationalization plugin for Vue.js. In versions 9.14.5 and 10.0.8, and from 11.1.10 until 11.4.22 and 12.0.0-alpha.4 until 12.0.0-alpha.13, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts does not track the HTML element stack when escapeParameter is enabled. During SSR, an attacker-controlled translation can leave HTML, SVG, or MathML elements open, or close elements outside the translation, causing later page markup to be parsed in the attacker-selected context. Script execution requires a later inline script whose text contains attacker-controlled data and no intervening element that leaves SVG parsing; character-reference decoding can then let the data terminate a JavaScript string and execute in the application origin. Otherwise, the manipulated parser state can hide the page, capture later form controls, or absorb subsequent content. Client-only fragment rendering is not affected. This issue is fixed in versions 11.4.22 and 12.0.0-alpha.13.

CVSS 3.1 vector

Exploitability

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

Impact

Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N

Exploit chance over time

Scored once so far, on . The trend appears after a second daily score.

Affected

Packages 6

Affected packages
PackageAffectedFixed
vue-i18n
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None listed
11.1.10 up to 11.4.22
11.4.22
12.0.0-alpha.4 up to 12.0.0-alpha.13
12.0.0-alpha.13
petite-vue-i18n
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None listed
11.1.10 up to 11.4.22
11.4.22
12.0.0-alpha.4 up to 12.0.0-alpha.13
12.0.0-alpha.13
Show 4 more packagesShow less
Affected packages
PackageAffectedFixed
@intlify/core-base
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None listed
11.1.10 up to 11.4.22
11.4.22
12.0.0-alpha.4 up to 12.0.0-alpha.13
12.0.0-alpha.13
@intlify/core
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None listed
11.1.10 up to 11.4.22
11.4.22
12.0.0-alpha.4 up to 12.0.0-alpha.13
12.0.0-alpha.13
@intlify/vue-i18n-core
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None listed
11.1.10 up to 11.4.22
11.4.22
12.0.0-alpha.4 up to 12.0.0-alpha.13
12.0.0-alpha.13
@intlify/shared
npm
9.14.5 to 9.14.5None listed
10.0.8 to 10.0.8None listed
11.1.10 up to 11.4.22
11.4.22
12.0.0-alpha.4 up to 12.0.0-alpha.13
12.0.0-alpha.13

Products 1

Sources

CVE List Score usedCVSS 3.15.4

vue-i18n escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed

Vue I18n is the internationalization plugin for Vue.js. In versions 9.14.5 and 10.0.8, and from 11.1.10 until 11.4.22 and 12.0.0-alpha.4 until 12.0.0-alpha.13, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts does not track the HTML element stack when escapeParameter is enabled. During SSR, an attacker-controlled translation can leave HTML, SVG, or MathML elements open, or close elements outside the translation, causing later page markup to be parsed in the attacker-selected context. Script execution requires a later inline script whose text contains attacker-controlled data and no intervening element that leaves SVG parsing; character-reference decoding can then let the data terminate a JavaScript string and execute in the application origin. Otherwise, the manipulated parser state can hide the page, capture later form controls, or absorb subsequent content. Client-only fragment rendering is not affected. This issue is fixed in versions 11.4.22 and 12.0.0-alpha.13.

Record
CVE-2026-144406
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79, CWE-116
Updated
2026-12-03
EUVDEUVD-2026-143703CVSS 3.15.4

Vue I18n is the internationalization plugin for Vue.js. In versions 9.14.5 and 10.0.8, and from 11.1.10 until 11.4.22 and 12.0.0-alpha.4 until 12.0.0-alpha.13, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts does not track the HTML element stack when escapeParameter is enabled. During SSR, an attacker-controlled translation can leave HTML, SVG, or MathML elements open, or close elements outside the translation, causing later page markup to be parsed in the attacker-selected context. Script execution requires a later inline script whose text contains attacker-controlled data and no intervening element that leaves SVG parsing; character-reference decoding can then let the data terminate a JavaScript string and execute in the application origin. Otherwise, the manipulated parser state can hide the page, capture later form controls, or absorb subsequent content. Client-only fragment rendering is not affected. This issue is fixed in versions 11.4.22 and 12.0.0-alpha.13.

Record
EUVD-2026-143703
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Updated
2026-12-03
GitHub AdvisoriesGHSA-786j-gfwp-vhm5CVSS 3.15.4

Vue I18n: escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed

Summary

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

When 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 &quot; in a serialized state, can then end a JavaScript string, and run in the origin of the application.

Details

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.

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

Some shapes need no boundary:

  • 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.
  • In an <a>, </a><svg> closes the container, and opens <svg> after it.
  • In an SVG <foreignObject> of the page, </span></foreignObject> closes the <foreignObject> of the page without opening any element.

An inline <script> in SVG is an SVG script. Its content is parsed as markup, so &quot; becomes " before the script runs.

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

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

PoC

import { createI18n } from 'vue-i18n'

const i18n = createI18n({
  legacy: false,
  locale: 'en',
  escapeParameter: true,
  messages: {
    en: {
      footer: '© Example<object><svg>',
      greeting: 'Say &quot;-alert(document.cookie)-&quot; hi'
    }
  }
})

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

<footer><small>© Example<object><svg></small></footer>
<script>window.__STATE__ = {"greeting":"Say &quot;-alert(document.cookie)-&quot; hi"}</script>

</small> and </footer> are ignored while <object> is open, so the <script> is parsed as an SVG script, &quot; 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.

Impact

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

When an…

Record
GHSA-786j-gfwp-vhm5
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79, CWE-116
Updated
2026-12-04
NVDCVSS 3.15.4

Vue I18n is the internationalization plugin for Vue.js. In versions 9.14.5 and 10.0.8, and from 11.1.10 until 11.4.22 and 12.0.0-alpha.4 until 12.0.0-alpha.13, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts does not track the HTML element stack when escapeParameter is enabled. During SSR, an attacker-controlled translation can leave HTML, SVG, or MathML elements open, or close elements outside the translation, causing later page markup to be parsed in the attacker-selected context. Script execution requires a later inline script whose text contains attacker-controlled data and no intervening element that leaves SVG parsing; character-reference decoding can then let the data terminate a JavaScript string and execute in the application origin. Otherwise, the manipulated parser state can hide the page, capture later form controls, or absorb subsequent content. Client-only fragment rendering is not affected. This issue is fixed in versions 11.4.22 and 12.0.0-alpha.13.

Record
CVE-2026-144406
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79, CWE-116
Updated
2026-12-03
OSVCVSS 3.15.4

vue-i18n escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed

Vue I18n is the internationalization plugin for Vue.js. In versions 9.14.5 and 10.0.8, and from 11.1.10 until 11.4.22 and 12.0.0-alpha.4 until 12.0.0-alpha.13, sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts does not track the HTML element stack when escapeParameter is enabled. During SSR, an attacker-controlled translation can leave HTML, SVG, or MathML elements open, or close elements outside the translation, causing later page markup to be parsed in the attacker-selected context. Script execution requires a later inline script whose text contains attacker-controlled data and no intervening element that leaves SVG parsing; character-reference decoding can then let the data terminate a JavaScript string and execute in the application origin. Otherwise, the manipulated parser state can hide the page, capture later form controls, or absorb subsequent content. Client-only fragment rendering is not affected. This issue is fixed in versions 11.4.22 and 12.0.0-alpha.13.

Record
CVE-2026-144406
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-116, CWE-79
Updated
2026-12-04

The JSON record also has the rest of 1 source description.

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Affected packages, key facts, referencesGitHub Advisories, OSV
Other IDs, published dateEUVD, NVD
Other IDs, referencesOSV
Key facts, referencesCVE List, NVD
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open