npm
CVE-2026-118257
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
- Severity
- High 7.2
- 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.3% in the next 30 daysHigher than 19% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N- Also known as
- GHSA-83rm-6c8r-g728
- Sources
- OSV.dev and GitHub
Description
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 .
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).
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 on of event handler attributes to on.
- It replaces javascript: URLs in href, src, action and formaction with about:blank.
Workarounds
- Do not render translations that can contain untrusted content with v-html. Use component interpolation () instead.
- Do not put srcdoc in translation messages, and do not pass values into it.
Affected software
| Software | Affected versions |
|---|---|
@intlify/corenpm · osv:npm:@intlify/core |
|
@intlify/core-basenpm · osv:npm:@intlify/core-base |
|
@intlify/sharednpm · osv:npm:@intlify/shared |
|
@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-118256Vue I18n: `escapeParameter` does not escape named values when the same call also passes a listLow 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-118256Vue I18n: `escapeParameter` does not escape named values when the same call also passes a listLow 28 Oct 2026
About @intlify/shared
- Weekly downloads (npm)
- 5,716,327npm, 23 Nov 2026
This is the only vulnerability in @intlify/shared in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-118257
- GitHub Advisory Database https://github.com/advisories/GHSA-83rm-6c8r-g728