Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vue-i18n
  4. ›
  5. CVE-2025-53892

CVE-2025-53892: vue-i18n's escapeParameterHtml does not prevent DOM-based XSS through its tag attributes

July 16, 2025 (updated July 17, 2025)

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. Learn more about Dependency Scanning →

Affected versions

All versions starting from 9.0.0 before 9.14.5, all versions starting from 10.0.0 before 10.0.8, all versions starting from 11.0.0 before 11.1.10

Fixed versions

  • 9.14.5
  • 10.0.8
  • 11.1.10

Solution

Upgrade to versions 10.0.8, 11.1.10, 9.14.5 or above.

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/vue-i18n/CVE-2025-53892.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:21 +0000.