CVE-2025-53892: vue-i18n's escapeParameterHtml does not prevent DOM-based XSS through its tag attributes
(updated )
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.
References
- github.com/advisories/GHSA-x8qp-wqqm-57ph
- github.com/intlify/vue-i18n
- github.com/intlify/vue-i18n/commit/49f982443ab8fd94ecc427b265ce97d57df94d7e
- github.com/intlify/vue-i18n/commit/a47099619fb9b256e86341a8658ebe72e92ab099
- github.com/intlify/vue-i18n/pull/2229
- github.com/intlify/vue-i18n/pull/2230
- github.com/intlify/vue-i18n/releases/tag/v10.0.8
- github.com/intlify/vue-i18n/releases/tag/v11.1.10
- github.com/intlify/vue-i18n/releases/tag/v9.14.5
- github.com/intlify/vue-i18n/security/advisories/GHSA-x8qp-wqqm-57ph
- nvd.nist.gov/vuln/detail/CVE-2025-53892
Code Behaviors & Features
Detect and mitigate CVE-2025-53892 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →