CVE-2025-27597 Vue I18n Prototype Pollution in `handleFlatJson`

High 8.9 Published Updated

Attackers can exploit prototype pollution in Vue I18n to cause denial of service or potentially execute arbitrary code via sensitive Node.js APIs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-27597?

CVE-2025-27597 is a high-severity code injection vulnerability in intlify vue-i18n, published on 7 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Vue I18n is the internationalization plugin for Vue.js. @intlify/message-resolver and @intlify/vue-i18n-core are vulnerable to Prototype Pollution through the entry function: handleFlatJson. An attacker can supply a payload with Object.prototype setter to introduce or modify properties within the global prototype chain, causing denial of service (DoS) a the minimum consequence. Moreover, the consequences of this vulnerability can escalate to other injection-based attacks, depending on how the library integrates within the application. For instance, if the polluted property propagates to sensitive Node.js APIs (e.g., exec, eval), it could enable an attacker to execute arbitrary commands within the application's context.

Weakness: CWE-1321

Which versions are affected by CVE-2025-27597?

22 open source packages ship an affected version, including @intlify/vue-i18n-core, @intlify/core and @intlify/core-base.

PackageAffectedFixed in
@intlify/vue-i18n-core npmFrom 10.0.0-alpha.110.0.6
@intlify/vue-i18n-core npmFrom 10.0.0-alpha.110.0.6
@intlify/vue-i18n-core npmFrom 11.0.0-beta.011.1.2
@intlify/vue-i18n-core npmFrom 11.0.0-beta.011.1.2
@intlify/vue-i18n-core npmFrom 9.2.09.14.3
@intlify/vue-i18n-core npmFrom 9.2.09.14.3
16 more packages
@intlify/core npmFrom 9.1.09.1.11
@intlify/core npmFrom 9.1.09.1.11
@intlify/core-base npmFrom 9.1.09.1.11
@intlify/core-base npmFrom 9.1.09.1.11
@intlify/message-resolver npmFrom 9.1.09.1.11
@intlify/message-resolver npmFrom 9.1.09.1.11
petite-vue-i18n npmFrom 10.0.010.0.6
petite-vue-i18n npmFrom 10.0.010.0.6
petite-vue-i18n npmFrom 11.0.0-beta.011.1.2
petite-vue-i18n npmFrom 11.0.0-beta.011.1.2
vue-i18n npmFrom 10.0.0-alpha.110.0.6
vue-i18n npmFrom 10.0.0-alpha.110.0.6
vue-i18n npmFrom 11.0.0-beta.011.1.2
vue-i18n npmFrom 11.0.0-beta.011.1.2
vue-i18n npmFrom 9.1.09.14.3
vue-i18n npmFrom 9.1.09.14.3

How do I fix CVE-2025-27597?

Upgrade @intlify/vue-i18n-core to a fixed version for your release line: 10.0.6, 11.1.2 or 9.14.3.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-27597 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-27597 exists.

Sources

Also known as GHSA-p2ph-7g93-hw3m.

Is CVE-2025-27597 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free