CVE-2025-53892: vue-i18n's escapeParameterHtml does not prevent DOM-based XSS through its tag attributes
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 , if the interpolated value is inserted inside an HTML context using v-html.
Published Jul 16, 2025 · Updated Jul 17, 2025
Affected packages
vue-i18n
- Ecosystem
- npm
- Affected
- >= 9.0.0, < 9.14.5
- Fixed in
- 9.14.5
- Check
npm ls vue-i18n
vue-i18n
- Ecosystem
- npm
- Affected
- >= 10.0.0, < 10.0.8
- Fixed in
- 10.0.8
- Check
npm ls vue-i18n
vue-i18n
- Ecosystem
- npm
- Affected
- >= 11.0.0, < 11.1.10
- Fixed in
- 11.1.10
- Check
npm ls vue-i18n
@intlify/core
- Ecosystem
- npm
- Affected
- >= 9.0.0, < 9.14.5
- Fixed in
- 9.14.5
- Check
npm ls @intlify/core
@intlify/core
- Ecosystem
- npm
- Affected
- >= 10.0.0, < 10.0.8
- Fixed in
- 10.0.8
- Check
npm ls @intlify/core
@intlify/core
- Ecosystem
- npm
- Affected
- >= 11.0.0, < 11.1.10
- Fixed in
- 11.1.10
- Check
npm ls @intlify/core
@intlify/core-base
- Ecosystem
- npm
- Affected
- >= 9.0.0, < 9.14.5
- Fixed in
- 9.14.5
- Check
npm ls @intlify/core-base
@intlify/core-base
- Ecosystem
- npm
- Affected
- >= 10.0.0, < 10.0.8
- Fixed in
- 10.0.8
- Check
npm ls @intlify/core-base
@intlify/core-base
- Ecosystem
- npm
- Affected
- >= 11.0.0, < 11.1.10
- Fixed in
- 11.1.10
- Check
npm ls @intlify/core-base
@intlify/vue-i18n-core
- Ecosystem
- npm
- Affected
- >= 9.2.0, < 9.14.5
- Fixed in
- 9.14.5
- Check
npm ls @intlify/vue-i18n-core
@intlify/vue-i18n-core
- Ecosystem
- npm
- Affected
- >= 10.0.0, < 10.0.8
- Fixed in
- 10.0.8
- Check
npm ls @intlify/vue-i18n-core
@intlify/vue-i18n-core
- Ecosystem
- npm
- Affected
- >= 11.0.0, < 11.1.10
- Fixed in
- 11.1.10
- Check
npm ls @intlify/vue-i18n-core
petite-vue-i18n
- Ecosystem
- npm
- Affected
- >= 10.0.0, < 10.0.8
- Fixed in
- 10.0.8
- Check
npm ls petite-vue-i18n
petite-vue-i18n
- Ecosystem
- npm
- Affected
- >= 11.0.0, < 11.1.10
- Fixed in
- 11.1.10
- Check
npm ls petite-vue-i18n
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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 ``, 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:
PoC
In your Vue I18n configuration:
const i18n = createI18n({
escapeParameterHtml: true,
messages: {
en: {
vulnerable: 'Caution: '
}
}
});Use this interpolated payload:
const payload = '<script>alert("xss")</script>'; Render the translation using v-html (even not using v-html):
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) .
Credited to luoingly.
References
- https://github.com/intlify/vue-i18n/security/advisories/GHSA-x8qp-wqqm-57ph
- https://nvd.nist.gov/vuln/detail/CVE-2025-53892
- https://github.com/intlify/vue-i18n/pull/2229
- https://github.com/intlify/vue-i18n/pull/2230
- https://github.com/intlify/vue-i18n/commit/49f982443ab8fd94ecc427b265ce97d57df94d7e
- https://github.com/intlify/vue-i18n/commit/a47099619fb9b256e86341a8658ebe72e92ab099
- https://github.com/intlify/vue-i18n/releases/tag/v10.0.8
- https://github.com/intlify/vue-i18n/releases/tag/v11.1.10
- https://github.com/intlify/vue-i18n/releases/tag/v9.14.5
- https://github.com/advisories/GHSA-x8qp-wqqm-57ph
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-118256
Vue I18n: `escapeParameter` does not escape named values when the same call also passes a list
low2.1Oct 28, 2026CVE-2026-118257
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
high7.2No fixOct 28, 2026CVE-2025-27597
Vue I18n Allows Prototype Pollution in `handleFlatJson`
high8.9Mar 7, 2025CVE-2024-52809
vue-i18n has cross-site scripting vulnerability with prototype pollution
medium5.3Dec 2, 2024CVE-2024-52810
@intlify/shared Prototype Pollution vulnerability
medium6.9Dec 2, 2024
