All vulnerabilities

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
Weakness
Improper output encoding (CWE-116)Cross-site scripting (CWE-79)
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 &#111;n.
  • It replaces javascript: URLs in href, src, action and formaction with about:blank.
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

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.
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
@intlify/corenpm · osv:npm:@intlify/core
  • From 11.1.10 before 11.4.14
  • From 12.0.0-alpha.4 before 12.0.0-alpha.5
@intlify/core-basenpm · osv:npm:@intlify/core-base
  • From 11.1.10 before 11.4.14
  • From 12.0.0-alpha.4 before 12.0.0-alpha.5
@intlify/sharednpm · osv:npm:@intlify/shared
  • From 11.1.10 before 11.4.14
  • From 12.0.0-alpha.4 before 12.0.0-alpha.5
@intlify/vue-i18n-corenpm · osv:npm:@intlify/vue-i18n-core
  • From 11.1.10 before 11.4.14
  • From 12.0.0-alpha.4 before 12.0.0-alpha.5
petite-vue-i18nnpm · osv:npm:petite-vue-i18n
  • From 11.1.10 before 11.4.14
  • From 12.0.0-alpha.4 before 12.0.0-alpha.5
vue-i18nnpm · osv:npm:vue-i18n
  • From 11.1.10 before 11.4.14
  • From 12.0.0-alpha.4 before 12.0.0-alpha.5

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
Search the list for @intlify/core

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
Search the list for @intlify/core-base

About @intlify/shared

Weekly downloads (npm)
5,716,327npm, 23 Nov 2026

This is the only vulnerability in @intlify/shared in our list.

References