GHSA-x8qp-wqqm-57ph
vue-i18n's escapeParameterHtml does not prevent DOM-based XSS through its tag attributes
Quick fix
GHSA-x8qp-wqqm-57ph — vue-i18n: upgrade to the fixed version with the command below.
npm install vue-i18n@9.14.5Details
### Summary The escapeParameterHtml: true option in Vue I18n is designed to protect against HTML/script injection by escaping interpolated parameters. However, this setting fails to prevent execution of certain tag-based payloads, such as `<img src=x onerror=...>`, if the interpolated value is inserted inside an HTML context using v-html.
This may lead to a DOM-based XSS vulnerability, even when using escapeParameterHtml: true, if a translation string includes minor HTML and is rendered via v-html.
### Details
When escapeParameterHtml: true is enabled, it correctly escapes common injection points.
However, it does not sanitize entire attribute contexts, which can be used as XSS vectors via:
`<img src=x onerror=alert(1)> ` ### PoC In your Vue I18n configuration:
``` const i18n = createI18n({ escapeParameterHtml: true, messages: { en: { vulnerable: 'Caution: <img src=x onerror="{payload}">' } } }); ``` Use this interpolated payload:
`const payload = '<script>alert("xss")</script>';` Render the translation using v-html (even not using v-html):
`<p v-html="$t('vulnerable', { payload })"></p> ` Expected: escaped content should render as text, not execute.
Actual: script executes in some environments (or the payload is partially parsed as HTML).
### Impact
This creates a DOM-based Cross-Site Scripting (XSS) vulnerability despite enabling a security option (escapeParameterHtml) .
Are you affected?
Enter the version of the package you're using.
Affected packages
11.0.0Fixed in: 11.1.10npm install @intlify/core-base@11.1.109.2.0Fixed in: 9.14.5npm install @intlify/vue-i18n-core@9.14.510.0.0Fixed in: 10.0.8npm install @intlify/vue-i18n-core@10.0.811.0.0Fixed in: 11.1.10npm install @intlify/vue-i18n-core@11.1.10References
- https://github.com/intlify/vue-i18n/security/advisories/GHSA-x8qp-wqqm-57ph[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2025-53892[ADVISORY]
- https://github.com/intlify/vue-i18n/pull/2229[WEB]
- https://github.com/intlify/vue-i18n/pull/2230[WEB]
- https://github.com/intlify/vue-i18n/commit/49f982443ab8fd94ecc427b265ce97d57df94d7e[WEB]
- https://github.com/intlify/vue-i18n/commit/a47099619fb9b256e86341a8658ebe72e92ab099[WEB]
- https://github.com/intlify/vue-i18n[PACKAGE]
- https://github.com/intlify/vue-i18n/releases/tag/v10.0.8[WEB]
- https://github.com/intlify/vue-i18n/releases/tag/v11.1.10[WEB]
- https://github.com/intlify/vue-i18n/releases/tag/v9.14.5[WEB]