Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. petite-vue-i18n
  4. ›
  5. CVE-2026-118257

CVE-2026-118257: Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages

October 28, 2026

When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n passes the translated string through sanitizeTranslatedHtml(). The sanitizer escapes < and > in attribute values and neutralizes event handler attributes such as onerror, but it does not handle the srcdoc attribute of <iframe>.

The value of srcdoc is an HTML document: the browser decodes the character references in it and parses the result as a nested document in the same origin. The escaping and the neutralization done by the sanitizer are both character references, so they are undone inside srcdoc. This bypasses the fix for CVE-2025-53892 (GHSA-x8qp-wqqm-57ph).

References

  • github.com/advisories/GHSA-83rm-6c8r-g728
  • github.com/intlify/vue-i18n/commit/43391d20e7c85403cb59bdb21b5d542819f54042
  • github.com/intlify/vue-i18n/pull/2679
  • github.com/intlify/vue-i18n/releases/tag/v11.4.14
  • github.com/intlify/vue-i18n/releases/tag/v12.0.0-alpha.5
  • github.com/intlify/vue-i18n/security/advisories/GHSA-83rm-6c8r-g728
  • nvd.nist.gov/vuln/detail/CVE-2026-118257

Code Behaviors & Features

Detect and mitigate CVE-2026-118257 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 →

Affected versions

Version 9.14.5, version 10.0.8, all versions starting from 11.1.10 before 11.4.14, all versions starting from 12.0.0-alpha.4 before 12.0.0-alpha.5

Fixed versions

  • 11.4.14
  • 12.0.0-alpha.5

Solution

Upgrade to versions 11.4.14, 12.0.0-alpha.5 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/petite-vue-i18n/CVE-2026-118257.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 29 Oct 2026 00:16:15 +0000.