GHSA-83rm-6c8r-g728: XSS

Published Oct 28, 2026
·
Updated

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

js 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

- CWE-79, CWE-116 - GHSA-x8qp-wqqm-57ph (CVE-2025-53892): the fix that added sanitizeTranslatedHtml() - GHSA-8rc2-428q-7ww3: named values are not escaped when a list is also passed - HTML Standard: the srcdoc attribute

Affected Software

24 affected componentsFixes available
npm/@intlify/shared=12.0.0-alpha.4
12.0.0-alpha.5
npm/@intlify/shared>=11.1.10<11.4.14
11.4.14
npm/@intlify/shared=10.0.8
npm/@intlify/shared=9.14.5
npm/@intlify/vue-i18n-core=12.0.0-alpha.4
12.0.0-alpha.5
npm/@intlify/vue-i18n-core>=11.1.10<11.4.14
11.4.14
npm/@intlify/vue-i18n-core=10.0.8
npm/@intlify/vue-i18n-core=9.14.5
npm/@intlify/core=12.0.0-alpha.4
12.0.0-alpha.5
npm/@intlify/core>=11.1.10<11.4.14
11.4.14
npm/@intlify/core=10.0.8
npm/@intlify/core=9.14.5
npm/@intlify/core-base=12.0.0-alpha.4
12.0.0-alpha.5
npm/@intlify/core-base>=11.1.10<11.4.14
11.4.14
npm/@intlify/core-base=10.0.8
npm/@intlify/core-base=9.14.5
npm/petite-vue-i18n=12.0.0-alpha.4
12.0.0-alpha.5
npm/petite-vue-i18n>=11.1.10<11.4.14
11.4.14
npm/petite-vue-i18n=10.0.8
npm/petite-vue-i18n=9.14.5
npm/vue-i18n=12.0.0-alpha.4
12.0.0-alpha.5
npm/vue-i18n>=11.1.10<11.4.14
11.4.14
npm/vue-i18n=10.0.8
npm/vue-i18n=9.14.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@intlify/shared to a version that resolves this vulnerability.

    Fixed in 12.0.0-alpha.5
  2. Upgrade

    Upgrade npm/@intlify/shared to a version that resolves this vulnerability.

    Fixed in 11.4.14
  3. Upgrade

    Upgrade npm/@intlify/vue-i18n-core to a version that resolves this vulnerability.

    Fixed in 12.0.0-alpha.5
  4. Upgrade

    Upgrade npm/@intlify/vue-i18n-core to a version that resolves this vulnerability.

    Fixed in 11.4.14
  5. Upgrade

    Upgrade npm/@intlify/core to a version that resolves this vulnerability.

    Fixed in 12.0.0-alpha.5
  6. Upgrade

    Upgrade npm/@intlify/core to a version that resolves this vulnerability.

    Fixed in 11.4.14
  7. Upgrade

    Upgrade npm/@intlify/core-base to a version that resolves this vulnerability.

    Fixed in 12.0.0-alpha.5
  8. Upgrade

    Upgrade npm/@intlify/core-base to a version that resolves this vulnerability.

    Fixed in 11.4.14
  9. Upgrade

    Upgrade npm/petite-vue-i18n to a version that resolves this vulnerability.

    Fixed in 12.0.0-alpha.5
  10. Upgrade

    Upgrade npm/petite-vue-i18n to a version that resolves this vulnerability.

    Fixed in 11.4.14
  11. Upgrade

    Upgrade npm/vue-i18n to a version that resolves this vulnerability.

    Fixed in 12.0.0-alpha.5
  12. Upgrade

    Upgrade npm/vue-i18n to a version that resolves this vulnerability.

    Fixed in 11.4.14
  13. Upgrade

    Upgrade vue-i18n to a version that resolves this vulnerability.

    Fixed in 11.4.14
  14. Compensating control

    Do not put srcdoc in translation messages or pass values into srcdoc.

  15. Compensating control

    Do not render translations that can contain untrusted content with v-html; use component interpolation (<i18n-t>) instead.

Event History

Oct 28, 2026
Advisory Published
via GitHub·09:06 PM
Data Sourced
via GitHub·09:06 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this bypass?

Deployments using the listed Vue I18n-related packages are exposed when escapeParameter is enabled, or when the Legacy API equivalent escapeParameterHtml is enabled. The issue specifically concerns translated HTML that can contain an iframe srcdoc attribute.

2

What makes the sanitizer protections ineffective in this case?

The srcdoc attribute is parsed by the browser as a nested HTML document in the same origin. Character-reference escaping and event-handler neutralization performed by sanitizeTranslatedHtml() are decoded again within that nested document.

3

How can I identify potentially affected translation content?

Review configurations for escapeParameter or escapeParameterHtml, then inspect translated HTML for iframe elements using srcdoc. Such content can bypass the sanitizer's escaping and event-handler attribute neutralization.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203