CVE-2026-118257
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
Vue I18n is the internationalization plugin for Vue.js. From 11.1.10 until 11.4.14 and from 12.0.0-alpha.4 until 12.0.0-alpha.5, sanitizeTranslatedHtml() escapes markup and event-handler text inside an iframe srcdoc value but leaves the srcdoc attribute active. Browsers decode the character references and parse the value as a same-origin nested HTML document, allowing attacker-controlled parameters or translation content placed in srcdoc to execute script when applications enable escapeParameter and render translations as HTML through v-html. Versions 9.14.5 and 10.0.8 are also affected and are no longer supported, while i18n-t rendering is not affected. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
7.2
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
Vue I18n is the internationalization plugin for Vue.js. From 11.1.10 until 11.4.14 and from 12.0.0-alpha.4 until 12.0.0-alpha.5, sanitizeTranslatedHtml() escapes markup and event-handler text inside an iframe srcdoc value but leaves the srcdoc attribute active. Browsers decode the character references and parse the value as a same-origin nested HTML document, allowing attacker-controlled parameters or translation content placed in srcdoc to execute script when applications enable escapeParameter and render translations as HTML through v-html. Versions 9.14.5 and 10.0.8 are also affected and are no longer supported, while i18n-t rendering is not affected. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.
- Record
CVE-2026-118257- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-79, CWE-116
- Updated
- 2026-11-02
EUVDEUVD-2026-112359
7.2
Vue I18n is the internationalization plugin for Vue.js. From 11.1.10 until 11.4.14 and from 12.0.0-alpha.4 until 12.0.0-alpha.5, sanitizeTranslatedHtml() escapes markup and event-handler text inside an iframe srcdoc value but leaves the srcdoc attribute active. Browsers decode the character references and parse the value as a same-origin nested HTML document, allowing attacker-controlled parameters or translation content placed in srcdoc to execute script when applications enable escapeParameter and render translations as HTML through v-html. Versions 9.14.5 and 10.0.8 are also affected and are no longer supported, while i18n-t rendering is not affected. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.
- Record
EUVD-2026-112359- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-83rm-6c8r-g728
7.2
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
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:
- It escapes
<,>,"and'inside quoted attribute values. - It rewrites the
onof event handler attributes toon. - It replaces
javascript:URLs inhref,src,actionandformactionwithabout: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>,escapeParameterescapescontentinto 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="<b>x</b>"></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
srcdocin translation messages, and do not pass values into it.
References
- CWE-79, CWE-116
- GHSA-x8qp-wqqm-57ph (CVE-2025-53892): the fix that added…
- Record
GHSA-83rm-6c8r-g728- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-79, CWE-116
- Updated
- 2026-11-02
NVD
7.2
Vue I18n is the internationalization plugin for Vue.js. From 11.1.10 until 11.4.14 and from 12.0.0-alpha.4 until 12.0.0-alpha.5, sanitizeTranslatedHtml() escapes markup and event-handler text inside an iframe srcdoc value but leaves the srcdoc attribute active. Browsers decode the character references and parse the value as a same-origin nested HTML document, allowing attacker-controlled parameters or translation content placed in srcdoc to execute script when applications enable escapeParameter and render translations as HTML through v-html. Versions 9.14.5 and 10.0.8 are also affected and are no longer supported, while i18n-t rendering is not affected. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.
- Record
CVE-2026-118257- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-79, CWE-116
- Updated
- 2026-11-02
OSV
7.2
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
Vue I18n is the internationalization plugin for Vue.js. From 11.1.10 until 11.4.14 and from 12.0.0-alpha.4 until 12.0.0-alpha.5, sanitizeTranslatedHtml() escapes markup and event-handler text inside an iframe srcdoc value but leaves the srcdoc attribute active. Browsers decode the character references and parse the value as a same-origin nested HTML document, allowing attacker-controlled parameters or translation content placed in srcdoc to execute script when applications enable escapeParameter and render translations as HTML through v-html. Versions 9.14.5 and 10.0.8 are also affected and are no longer supported, while i18n-t rendering is not affected. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.
- Record
CVE-2026-118257- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-116, CWE-79
- Updated
- 2026-11-02
OSVGHSA-83rm-6c8r-g728
7.2
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
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:
- It escapes
<,>,"and'inside quoted attribute values. - It rewrites the
onof event handler attributes toon. - It replaces
javascript:URLs inhref,src,actionandformactionwithabout: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>,escapeParameterescapescontentinto 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="<b>x</b>"></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
srcdocin translation messages, and do not pass values into it.
References
- CWE-79, CWE-116
- GHSA-x8qp-wqqm-57ph (CVE-2025-53892): the fix that added…
- Record
GHSA-83rm-6c8r-g728- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-116, CWE-79
- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2026-118257 No score
CVE-2026-118257 in @intlify/shared - Patched by Root
Root has patched CVE-2026-118257 in the @intlify/shared package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2026-118257- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
vue-i18nnpm |
9.14.5 to 9.14.5 | None known |
vue-i18nnpm |
10.0.8 to 10.0.8 | None known |
vue-i18nnpm |
11.1.10 up to 11.4.14 | 11.4.14 |
vue-i18nnpm |
12.0.0-alpha.4 to 12.0.0-alpha.4 | 12.0.0-alpha.5 |
petite-vue-i18nnpm |
9.14.5 to 9.14.5 | None known |
petite-vue-i18nnpm |
10.0.8 to 10.0.8 | None known |
petite-vue-i18nnpm |
11.1.10 up to 11.4.14 | 11.4.14 |
petite-vue-i18nnpm |
12.0.0-alpha.4 to 12.0.0-alpha.4 | 12.0.0-alpha.5 |
@intlify/core-basenpm |
9.14.5 to 9.14.5 | None known |
@intlify/core-basenpm |
10.0.8 to 10.0.8 | None known |
Show 38 moreShow less
| Package | Affected | Fixed |
|---|---|---|
@intlify/core-basenpm |
11.1.10 up to 11.4.14 | 11.4.14 |
@intlify/core-basenpm |
12.0.0-alpha.4 to 12.0.0-alpha.4 | 12.0.0-alpha.5 |
@intlify/corenpm |
9.14.5 to 9.14.5 | None known |
@intlify/corenpm |
10.0.8 to 10.0.8 | None known |
@intlify/corenpm |
11.1.10 up to 11.4.14 | 11.4.14 |
@intlify/corenpm |
12.0.0-alpha.4 to 12.0.0-alpha.4 | 12.0.0-alpha.5 |
@intlify/vue-i18n-corenpm |
9.14.5 to 9.14.5 | None known |
@intlify/vue-i18n-corenpm |
10.0.8 to 10.0.8 | None known |
@intlify/vue-i18n-corenpm |
11.1.10 up to 11.4.14 | 11.4.14 |
@intlify/vue-i18n-corenpm |
12.0.0-alpha.4 to 12.0.0-alpha.4 | 12.0.0-alpha.5 |
@intlify/sharednpm |
9.14.5 to 9.14.5 | None known |
@intlify/sharednpm |
10.0.8 to 10.0.8 | None known |
@intlify/sharednpm |
11.1.10 up to 11.4.14 | 11.4.14 |
@intlify/sharednpm |
12.0.0-alpha.4 to 12.0.0-alpha.4 | 12.0.0-alpha.5 |
vue-i18nnpm |
Listed versions 9.14.5 |
None known |
vue-i18nnpm |
Listed versions 10.0.8 |
None known |
vue-i18nnpm |
12.0.0-alpha.4 up to 12.0.0-alpha.5 | 12.0.0-alpha.5 |
petite-vue-i18nnpm |
Listed versions 9.14.5 |
None known |
petite-vue-i18nnpm |
Listed versions 10.0.8 |
None known |
petite-vue-i18nnpm |
12.0.0-alpha.4 up to 12.0.0-alpha.5 | 12.0.0-alpha.5 |
@intlify/core-basenpm |
Listed versions 9.14.5 |
None known |
@intlify/core-basenpm |
Listed versions 10.0.8 |
None known |
@intlify/core-basenpm |
12.0.0-alpha.4 up to 12.0.0-alpha.5 | 12.0.0-alpha.5 |
@intlify/corenpm |
Listed versions 9.14.5 |
None known |
@intlify/corenpm |
Listed versions 10.0.8 |
None known |
@intlify/corenpm |
12.0.0-alpha.4 up to 12.0.0-alpha.5 | 12.0.0-alpha.5 |
@intlify/vue-i18n-corenpm |
Listed versions 9.14.5 |
None known |
@intlify/vue-i18n-corenpm |
Listed versions 10.0.8 |
None known |
@intlify/vue-i18n-corenpm |
12.0.0-alpha.4 up to 12.0.0-alpha.5 | 12.0.0-alpha.5 |
@intlify/sharednpm |
Listed versions 9.14.5 |
None known |
@intlify/sharednpm |
Listed versions 10.0.8 |
None known |
@intlify/sharednpm |
12.0.0-alpha.4 up to 12.0.0-alpha.5 | 12.0.0-alpha.5 |
@intlify/sharedRoot:npm |
before 11.4.5-aikido.1 | 11.4.5-aikido.1 |
@intlify/core-baseRoot:npm |
before 11.4.5-aikido.1 | 11.4.5-aikido.1 |
vue-i18nRoot:npm |
before 11.4.5-aikido.1 | 11.4.5-aikido.1 |
@rootio/intlify__sharedRoot:npm |
before 11.4.5-root.io.1 | 11.4.5-root.io.1 |
@rootio/intlify__core-baseRoot:npm |
before 11.4.5-root.io.1 | 11.4.5-root.io.1 |
@rootio/vue-i18nRoot:npm |
before 11.4.5-root.io.1 | 11.4.5-root.io.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-118257 is a high vulnerability (CVSS 7.2) in Intlify Vue-i18n, published October 28, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.27%, the 19th percentile. Fixed in vue-i18n 11.4.14.
References
github.com/intlify/vue-i18n/security/advisories/GHSA-83rm-6c8r-g728
github.com/intlify/vue-i18n/pull/2679
github.com/intlify/vue-i18n/commit/43391d20e7c85403cb59bdb21b5d542819f54042
github.com/intlify/vue-i18n/releases/tag/v11.4.14
github.com/intlify/vue-i18n/releases/tag/v12.0.0-alpha.5
github.com/advisories/GHSA-83rm-6c8r-g728
github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118257.json
nvd.nist.gov/vuln/detail/CVE-2026-118257
github.com/intlify/vue-i18n
Left out here: the rest of 2 source descriptions. The JSON record has them.