{"id":"CVE-2025-53892","aliases":["CVE-2025-53892","GHSA-x8qp-wqqm-57ph"],"related":[],"kind":"vulnerability","state":"published","title":"Intlify Vue I18n's escapeParameterHtml does not prevent DOM-based XSS via tag attributes like onerror","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe 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.\n\nThis 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.\n\n### Details\n\nWhen escapeParameterHtml: true is enabled, it correctly escapes common injection points.\n\nHowever, it does not sanitize entire attribute contexts, which can be used as XSS vectors via:\n\n`<img src=x onerror=alert(1)>\n`\n### PoC\nIn your Vue I18n configuration:\n\n```\nconst i18n = createI18n({\n  escapeParameterHtml: true,\n  messages: {\n    en: {\n      vulnerable: 'Caution: <img src=x onerror=\"{payload}\">'\n    }\n  }\n});\n```\nUse this interpolated payload:\n\n`const payload = '<script>alert(\"xss\")</script>';`\nRender the translation using v-html (even not using v-html):\n\n`<p v-html=\"$t('vulnerable', { payload })\"></p>\n`\nExpected: escaped content should render as text, not execute.\n\nActual: script executes in some environments (or the payload is partially parsed as HTML).\n\n### Impact\n\nThis creates a DOM-based Cross-Site Scripting (XSS) vulnerability despite enabling a security option (escapeParameterHtml) .","format":"markdown","source":"ghsa"},{"lang":"es","text":"Vue I18n es el complemento de internacionalización para Vue.js. La opción \"escapeParameterHtml: true\" de Vue I18n está diseñada para proteger contra la inyección de HTML/scripts mediante el escape de parámetros interpolados. Sin embargo, a partir de la versión 9.0.0 y anteriores a las versiones 9.14.5, 10.0.8 y 11.1.0, esta configuración no impide la ejecución de ciertos payloads basadas en etiquetas, como , si el valor interpolado se inserta dentro de un contexto HTML mediante v-html. Esto puede provocar una vulnerabilidad XSS basada en DOM, incluso al usar \"escapeParameterHtml: true\", si una cadena de traducción incluye HTML menor y se renderiza mediante v-html. Las versiones 9.14.5, 10.0.8 y 11.1.0 incluyen una solución para este problema.","source":"nvd"}],"published":"2025-07-16T13:42:09.383Z","modified":"2026-09-10T03:50:57.972Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 9.0.0, < 9.14.5","status":"affected"},{"version":">= 10.0.0, < 10.0.8","status":"affected"},{"version":">= 11.0.0, < 11.1.0","status":"affected"}],"vendor":"intlify","product":"vue-i18n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"9.0.0","status":"affected","fixed":"9.14.5"}],"ecosystem":"npm","package":"vue-i18n","purl":"pkg:npm/vue-i18n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.0.8"}],"ecosystem":"npm","package":"vue-i18n","purl":"pkg:npm/vue-i18n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"11.0.0","status":"affected","fixed":"11.1.10"}],"ecosystem":"npm","package":"vue-i18n","purl":"pkg:npm/vue-i18n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.0.0","status":"affected","fixed":"9.14.5"}],"ecosystem":"npm","package":"@intlify/core","purl":"pkg:npm/%40intlify/core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.0.8"}],"ecosystem":"npm","package":"@intlify/core","purl":"pkg:npm/%40intlify/core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"11.0.0","status":"affected","fixed":"11.1.10"}],"ecosystem":"npm","package":"@intlify/core","purl":"pkg:npm/%40intlify/core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.0.0","status":"affected","fixed":"9.14.5"}],"ecosystem":"npm","package":"@intlify/core-base","purl":"pkg:npm/%40intlify/core-base","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.0.8"}],"ecosystem":"npm","package":"@intlify/core-base","purl":"pkg:npm/%40intlify/core-base","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"11.0.0","status":"affected","fixed":"11.1.10"}],"ecosystem":"npm","package":"@intlify/core-base","purl":"pkg:npm/%40intlify/core-base","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.2.0","status":"affected","fixed":"9.14.5"}],"ecosystem":"npm","package":"@intlify/vue-i18n-core","purl":"pkg:npm/%40intlify/vue-i18n-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.0.8"}],"ecosystem":"npm","package":"@intlify/vue-i18n-core","purl":"pkg:npm/%40intlify/vue-i18n-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"11.0.0","status":"affected","fixed":"11.1.10"}],"ecosystem":"npm","package":"@intlify/vue-i18n-core","purl":"pkg:npm/%40intlify/vue-i18n-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.0.8"}],"ecosystem":"npm","package":"petite-vue-i18n","purl":"pkg:npm/petite-vue-i18n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"11.0.0","status":"affected","fixed":"11.1.10"}],"ecosystem":"npm","package":"petite-vue-i18n","purl":"pkg:npm/petite-vue-i18n","source":"ghsa"}],"references":[{"url":"https://github.com/intlify/vue-i18n/security/advisories/GHSA-x8qp-wqqm-57ph","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/intlify/vue-i18n/pull/2229","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/intlify/vue-i18n/pull/2230","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/intlify/vue-i18n/commit/49f982443ab8fd94ecc427b265ce97d57df94d7e","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/intlify/vue-i18n/commit/a47099619fb9b256e86341a8658ebe72e92ab099","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/intlify/vue-i18n/releases/tag/v10.0.8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/intlify/vue-i18n/releases/tag/v11.1.10","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/intlify/vue-i18n/releases/tag/v9.14.5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53892","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/intlify/vue-i18n","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-07-22T14:58:31.075Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-53892","url":"https://www.cve.org/CVERecord?id=CVE-2025-53892","licence":"CVE Terms of Use","modified":"2025-07-22T14:58:34.382Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x8qp-wqqm-57ph","url":"https://github.com/advisories/GHSA-x8qp-wqqm-57ph","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:57.972Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-53892","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53892","licence":"Public domain","modified":"2026-06-17T09:39:05.340Z"}],"updatedAt":"2026-11-25T22:59:01.350Z","epss":{"score":0.011,"percentile":0.66585,"date":"2026-12-01T12:00:22.000Z"}}