CVE-2025-27597: Intlify Vue I18n prototype pollution in handleFlatJson

CVE-2025-27597 · Severity: high · CVSS 4 · Published 2025-03-07

Vue I18n is a popular internationalization library used in web applications to manage multi-language content. This vulnerability allows attackers to inject malicious properties into the core JavaScript object prototype through the `handleFlatJson` function. This can cause application crashes (denial of service) or, in worst-case scenarios where polluted properties interact with code execution functions like `eval` or `exec`, enable attackers to run arbitrary commands on the server or within the application.

Technologies: @intlify/core (npm), @intlify/core-base (npm), @intlify/vue-i18n-core (npm), petite-vue-i18n (npm), vue-i18n (npm). Vendors: npm.

Quick answers

Is CVE-2025-27597 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-27597 being exploited in the wild.
How severe is CVE-2025-27597?
High severity, with a CVSS score of 4, published 7 March 2025.
Which products and versions are affected?
@intlify/core (npm) SEMVER:introduced=9.1.0,fixed=9.1.11; @intlify/core-base (npm) SEMVER:introduced=9.1.0,fixed=9.1.11; @intlify/message-resolver (npm) SEMVER:introduced=9.1.0,fixed=9.1.11; @intlify/vue-i18n-core (npm) SEMVER:introduced=9.2.0,fixed=9.14.3; and 2 more.
Is there a fix for CVE-2025-27597?
Yes. @intlify/core (npm): upgrade to 9.1.11 or later; @intlify/core-base (npm): upgrade to 9.1.11 or later; @intlify/message-resolver (npm): upgrade to 9.1.11 or later; @intlify/vue-i18n-core (npm): upgrade to 9.14.3 or later; petite-vue-i18n (npm): upgrade to 10.0.6 or later; vue-i18n (npm): upgrade to 9.14.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2025-27597 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2025-27597?
Check whether you run @intlify/core (npm), @intlify/core-base (npm), @intlify/message-resolver (npm) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • @intlify/core (npm): upgrade to 9.1.11 or later
    npm install @intlify/core@9.1.11
  • @intlify/core-base (npm): upgrade to 9.1.11 or later
    npm install @intlify/core-base@9.1.11
  • @intlify/message-resolver (npm): upgrade to 9.1.11 or later
    npm install @intlify/message-resolver@9.1.11
  • @intlify/vue-i18n-core (npm): upgrade to 9.14.3 or later
    npm install @intlify/vue-i18n-core@9.14.3
  • petite-vue-i18n (npm): upgrade to 10.0.6 or later
    npm install petite-vue-i18n@10.0.6
  • vue-i18n (npm): upgrade to 9.14.3 or later
    npm install vue-i18n@9.14.3

Technical details

The vulnerability is a classic prototype pollution flaw in the `handleFlatJson` function across multiple Intlify packages (@intlify/message-resolver, @intlify/vue-i18n-core, vue-i18n, and others). The function inadequately sanitizes input object keys, allowing payloads containing `__proto__` or constructor properties to modify Object.prototype. Attack vectors include network-based exploitation if the vulnerable function processes untrusted user input (e.g., from API requests or configuration files). While the minimum impact is denial of service, the consequences can escalate depending on application context: if polluted prototype properties propagate to sensitive Node.js APIs (exec, eval, require), it may enable arbitrary code execution. No authentication or special privileges are required; patches are available (versions 9.1.11, 9.14.3, 10.0.6, and 11.1.2 or later).

Affected products

  • Intlify @intlify/core >= 9.1.0, < 9.1.11
  • Intlify @intlify/core-base >= 9.1.0, < 9.1.11
  • Intlify @intlify/message-resolver >= 9.1.0, < 9.1.11
  • Intlify @intlify/vue-i18n-core >= 9.2.0, < 9.14.3; >= 10.0.0-alpha.1, < 10.0.6; >= 11.0.0-beta.0, < 11.1.2
  • Intlify vue-i18n >= 9.1.0, < 9.14.3; >= 10.0.0-alpha.1, < 10.0.6; >= 11.0.0-beta.0, < 11.1.2
  • Intlify petite-vue-i18n >= 10.0.0, < 10.0.6; >= 11.0.0-beta.0, < 11.1.2

Identifiers

  • CVE-2025-27597
  • GHSA-p2ph-7g93-hw3m

Timeline

  • 2025-03-07: disclosed: Vulnerability disclosed via GitHub Advisory GHSA-p2ph-7g93-hw3m and CVE-2025-27597
  • 2025-03-07: patched: Patches released: @intlify/core 9.1.11, @intlify/message-resolver 9.1.11, @intlify/core-base 9.1.11, @intlify/vue-i18n-core 9.14.3/10.0.6/11.1.2, vue-i18n 9.14.3/10.0.6/11.1.2, petite-vue-i18n 10.0.6/11.1.2

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.