Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Skip to content
Check your stack
CVE-2026-118257high7.2

Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages

Impact

Vue I18n versions 9.14.5, 10.0.8, and 11.1.10 to 11.4.13 are affected by a vulnerability that allows an attacker to bypass the sanitizer and run script in the origin of the application when rendering translations as HTML with untrusted content. The weakness is due to improper neutralization of input during web page generation.

Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.

Affected packages

Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.

Affected range Recorded fix
From 11.1.10 before 11.4.14Semantic versions11.4.14
From 12.0.0-alpha.4 before 12.0.0-alpha.5Semantic versions12.0.0-alpha.5

Version evidence: OSV · GHSA-83rm-6c8r-g728

View original version evidence (3 explicit versions)
Affected range Recorded fix
From 11.1.10 before 11.4.14Semantic versions11.4.14
From 12.0.0-alpha.4 before 12.0.0-alpha.5Semantic versions12.0.0-alpha.5

Version evidence: OSV · GHSA-83rm-6c8r-g728

View original version evidence (3 explicit versions)
Affected range Recorded fix
From 11.1.10 before 11.4.14Semantic versions11.4.14
From 12.0.0-alpha.4 before 12.0.0-alpha.5Semantic versions12.0.0-alpha.5

Version evidence: OSV · GHSA-83rm-6c8r-g728

View original version evidence (3 explicit versions)
Affected range Recorded fix
From 11.1.10 before 11.4.14Semantic versions11.4.14
From 12.0.0-alpha.4 before 12.0.0-alpha.5Semantic versions12.0.0-alpha.5

Version evidence: OSV · GHSA-83rm-6c8r-g728

View original version evidence (3 explicit versions)
Affected range Recorded fix
From 11.1.10 before 11.4.14Semantic versions11.4.14
From 12.0.0-alpha.4 before 12.0.0-alpha.5Semantic versions12.0.0-alpha.5

Version evidence: OSV · GHSA-83rm-6c8r-g728

View original version evidence (3 explicit versions)
Affected range Recorded fix
From 11.1.10 before 11.4.14Semantic versions11.4.14
From 12.0.0-alpha.4 before 12.0.0-alpha.5Semantic versions12.0.0-alpha.5

Version evidence: OSV · GHSA-83rm-6c8r-g728

View original version evidence (3 explicit versions)

Affected products

Vendor version evidence. Product records are separate from automatic dependency matching.

intlify · GitHub_M

vue-i18n

4 ranges

Compare with this publisher’s ranges. This does not inspect your installation.

affected

= 9.14.5

= 10.0.8

>= 11.1.10, < 11.4.14

>= 12.0.0-alpha.4, < 12.0.0-alpha.5

unaffected

unknown

Other versions: unknown

Original source description

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:

  1. It escapes <, >, " and ' inside quoted attribute values.
  2. It rewrites the on of event handler attributes to &#111;n.
  3. It replaces javascript: URLs in href, src, action and formaction with about: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>, escapeParameter escapes content into 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="&lt;b&gt;x&lt;/b&gt;"></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 srcdoc in translation messages, and do not pass values into it.

References

Inside the record

Evidence available

Package identity
Version evidence
Remediation guidance · not supplied
Weakness classification
Additional publishers

Describes the evidence in this view, not whether the product is safe.

Original records

CVE-2026-118257

View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.

cve.new JSON →

Underlying weaknesses

The source’s classification of what caused the vulnerability.

CWE-79 ↗

CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

GitHub_M

Related →
CWE-116 ↗

CWE-116: Improper Encoding or Escaping of Output

GitHub_M

Related →
Contributing organizations · 2
GitHub_M

Assigning organization

2026-10-28
CISA-ADP

Additional data publisher

2026-10-29

What changed

Follow changes
  1. CVE · CVE-2026-118257

    Observed 2026-10-29T21:32:32.924Z · upstream updated 2026-10-29T20:55:05.780Z

    Prioritization updated

    before

    []

    after

    [
      {
        "source": "CISA-ADP",
        "type": "SSVC",
        "role": "CISA Coordinator",
        "timestamp": "2026-10-29T15:43:29.896851Z",
        "decisions": [
          {
            "name": "Exploitation",
            "value": "none"
          },
          {
            "name": "Automatable",
            "value": "yes"
          },
          {
            "name": "Technical Impact",
            "value": "partial"
          }
        ]
      }
    ]

Large field values are marked as truncated previews. Original source snapshots remain retained.

Showing up to 50 most recent observed changes.

References

6 sources