Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-53892 EUVD-2025-21704GHSA-x8qp-wqqm-57ph

Intlify Vue I18n's escapeParameterHtml does not prevent DOM-based XSS via tag attributes like onerror

Published Jul 16, 2025 · Updated Jul 22, 2025 · Assigned by GitHub_M

Description

Vue I18n is the internationalization plugin for Vue.js. The escapeParameterHtml: true option in Vue I18n is designed to protect against HTML/script injection by escaping interpolated parameters. However, starting in version 9.0.0 and prior to versions 9.14.5, 10.0.8, and 11.1.0, 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. Versions 9.14.5, 10.0.8, and 11.1.0 contain a fix for the issue.

Affected products

VendorProductAffectedFixed
intlify vue-i18n >= 9.0.0, < 9.14.5, >= 10.0.0, < 10.0.8, >= 11.0.0, < 11.1.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @intlify/core >= 9.0.0, < 9.14.5 9.14.5 GHSA-x8qp-wqqm-57ph
npm @intlify/core >= 10.0.0, < 10.0.8 10.0.8 GHSA-x8qp-wqqm-57ph
npm @intlify/core >= 11.0.0, < 11.1.10 11.1.10 GHSA-x8qp-wqqm-57ph
npm @intlify/core-base >= 9.0.0, < 9.14.5 9.14.5 GHSA-x8qp-wqqm-57ph
npm @intlify/core-base >= 10.0.0, < 10.0.8 10.0.8 GHSA-x8qp-wqqm-57ph
npm @intlify/core-base >= 11.0.0, < 11.1.10 11.1.10 GHSA-x8qp-wqqm-57ph
npm @intlify/vue-i18n-core >= 9.2.0, < 9.14.5 9.14.5 GHSA-x8qp-wqqm-57ph
npm @intlify/vue-i18n-core >= 10.0.0, < 10.0.8 10.0.8 GHSA-x8qp-wqqm-57ph
npm @intlify/vue-i18n-core >= 11.0.0, < 11.1.10 11.1.10 GHSA-x8qp-wqqm-57ph
npm petite-vue-i18n >= 10.0.0, < 10.0.8 10.0.8 GHSA-x8qp-wqqm-57ph
npm petite-vue-i18n >= 11.0.0, < 11.1.10 11.1.10 GHSA-x8qp-wqqm-57ph
npm vue-i18n >= 9.0.0, < 9.14.5 9.14.5 GHSA-x8qp-wqqm-57ph
npm vue-i18n >= 10.0.0, < 10.0.8 10.0.8 GHSA-x8qp-wqqm-57ph
npm vue-i18n >= 11.0.0, < 11.1.10 11.1.10 GHSA-x8qp-wqqm-57ph

References