CVE-2025-53892: Vue i18n Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-x8qp-wqqm-57ph
CWE-79
Published
Advisory Summary

CVE-2025-53892 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Vue i18n libraries in the npm ecosystem. The issue involves vue-i18n's escapeparameterhtml does not prevent dom-based xss through its tag attributes. Remediation is available by upgrading affected packages to version 9.14.5, 10.0.8, 11.1.10.

CVE-2025-53892 at a Glance

CVE Identifier CVE-2025-53892
GHSA Identifier GHSA-x8qp-wqqm-57ph
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Vue i18n
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-53892

To remediate this vulnerability, upgrade all affected Vue i18n dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

vue-i18n fixed: 9.14.5
npm install vue-i18n@9.14.5
vue-i18n fixed: 10.0.8
npm install vue-i18n@10.0.8
vue-i18n fixed: 11.1.10
npm install vue-i18n@11.1.10
@intlify/core fixed: 9.14.5
npm install @intlify/core@9.14.5
@intlify/core fixed: 10.0.8
npm install @intlify/core@10.0.8
@intlify/core fixed: 11.1.10
npm install @intlify/core@11.1.10
@intlify/core-base fixed: 9.14.5
npm install @intlify/core-base@9.14.5
@intlify/core-base fixed: 10.0.8
npm install @intlify/core-base@10.0.8
@intlify/core-base fixed: 11.1.10
npm install @intlify/core-base@11.1.10
@intlify/vue-i18n-core fixed: 9.14.5
npm install @intlify/vue-i18n-core@9.14.5
@intlify/vue-i18n-core fixed: 10.0.8
npm install @intlify/vue-i18n-core@10.0.8
@intlify/vue-i18n-core fixed: 11.1.10
npm install @intlify/vue-i18n-core@11.1.10
petite-vue-i18n fixed: 10.0.8
npm install petite-vue-i18n@10.0.8
petite-vue-i18n fixed: 11.1.10
npm install petite-vue-i18n@11.1.10
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls vue-i18n

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-53892, inspect your project dependencies using npm:

npm ls vue-i18n

Analyze the terminal output to locate any version of Vue i18n in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.14.5), your application is affected.

Note: The npm ls vue-i18n command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Vue i18n, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary 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. ### Details When escapeParameterHtml: true is enabled, it correctly escapes common injection points. However, it does not sanitize entire attribute contexts, which can be used as XSS vectors via: `<img src=x onerror=alert(1)> ` ### PoC In your Vue I18n configuration: ``` const i18n = createI18n({ escapeParameterHtml: true, messages: { en: { vulnerable: 'Caution: <img src=x onerror="{payload}">' } } }); ``` Use this interpolated payload: `const payload = '<script>alert("xss")</script>';` Render the translation using v-html (even not using v-html): `<p v-html="$t('vulnerable', { payload })"></p> ` Expected: escaped content should render as text, not execute. Actual: script executes in some environments (or the payload is partially parsed as HTML). ### Impact This creates a DOM-based Cross-Site Scripting (XSS) vulnerability despite enabling a security option (escapeParameterHtml) .

CVE-2025-53892 Affected Vue i18n Versions

14 component(s)
Fixed Versions:
9.14.510.0.811.1.10
Product / Package Ecosystem Affected Versions Fixed Version
vue-i18n
npm
≥ 9.0.0
< 9.14.5
9.14.5
vue-i18n
npm
≥ 10.0.0
< 10.0.8
10.0.8
vue-i18n
npm
≥ 11.0.0
< 11.1.10
11.1.10
@intlify/core
npm
≥ 9.0.0
< 9.14.5
9.14.5
@intlify/core
npm
≥ 10.0.0
< 10.0.8
10.0.8
@intlify/core
npm
≥ 11.0.0
< 11.1.10
11.1.10
@intlify/core-base
npm
≥ 9.0.0
< 9.14.5
9.14.5
@intlify/core-base
npm
≥ 10.0.0
< 10.0.8
10.0.8
@intlify/core-base
npm
≥ 11.0.0
< 11.1.10
11.1.10
@intlify/vue-i18n-core
npm
≥ 9.2.0
< 9.14.5
9.14.5
@intlify/vue-i18n-core
npm
≥ 10.0.0
< 10.0.8
10.0.8
@intlify/vue-i18n-core
npm
≥ 11.0.0
< 11.1.10
11.1.10
petite-vue-i18n
npm
≥ 10.0.0
< 10.0.8
10.0.8
petite-vue-i18n
npm
≥ 11.0.0
< 11.1.10
11.1.10

References

Frequently Asked Questions

What is CVE-2025-53892?
CVE-2025-53892 is a security vulnerability in Vue i18n involving vue-i18n's escapeParameterHtml does not prevent DOM-based XSS through its tag attributes under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Vue i18n versions are affected?
Affected versions include releases prior to 9.14.5, 10.0.8, 11.1.10 across affected packages: vue-i18n, @intlify/core, @intlify/core-base, @intlify/vue-i18n-core, petite-vue-i18n.
What version fixes CVE-2025-53892?
Upgrading to 9.14.5, 10.0.8, 11.1.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vue-i18n affected?
Yes, vue-i18n is affected in releases prior to 9.14.5, 10.0.8, 11.1.10. Upgrade your dependency to 9.14.5, 10.0.8, 11.1.10 or later.
Is @intlify/core affected?
Yes, @intlify/core is affected in releases prior to 9.14.5, 10.0.8, 11.1.10. Upgrade your dependency to 9.14.5, 10.0.8, 11.1.10 or later.
What CWE is associated with CVE-2025-53892?
CVE-2025-53892 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2025-53892?
Run the dependency tree command: 'npm ls vue-i18n'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x8qp-wqqm-57ph",
  "modified" : "2025-07-17T20:58:49Z",
  "published" : "2025-07-16T19:32:48Z",
  "aliases" : [ "CVE-2025-53892" ],
  "summary" : "vue-i18n's escapeParameterHtml does not prevent DOM-based XSS through its tag attributes",
  "details" : "### 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) .",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "vue-i18n"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.14.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "vue-i18n"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "vue-i18n"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.1.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@intlify/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.14.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@intlify/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@intlify/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.1.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@intlify/core-base"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.14.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@intlify/core-base"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@intlify/core-base"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.1.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@intlify/vue-i18n-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.2.0"
      }, {
        "fixed" : "9.14.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@intlify/vue-i18n-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@intlify/vue-i18n-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.1.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "petite-vue-i18n"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "petite-vue-i18n"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.1.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/intlify/vue-i18n/security/advisories/GHSA-x8qp-wqqm-57ph"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-53892"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/intlify/vue-i18n/pull/2229"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/intlify/vue-i18n/pull/2230"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/intlify/vue-i18n/commit/49f982443ab8fd94ecc427b265ce97d57df94d7e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/intlify/vue-i18n/commit/a47099619fb9b256e86341a8658ebe72e92ab099"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/intlify/vue-i18n"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/intlify/vue-i18n/releases/tag/v10.0.8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/intlify/vue-i18n/releases/tag/v11.1.10"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/intlify/vue-i18n/releases/tag/v9.14.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-16T19:32:48Z",
    "nvd_published_at" : "2025-07-16T14:15:28Z"
  }
}