Vulnerabilities in pkg:npm/@intlify/core-base
PACKAGECVE-2025-27597 is a HIGH vue i18n allows prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Petite vue i18n libraries in the npm ecosystem. The issue involves vue i18n allows prototype pollution in `handleflatjson`. Remediation is available by upgrading affected packages to version 11.1.2, 10.0.6, 9.1.11, 9.14.3.
pkg:npm/@intlify/core-base
Vulnerability advisories affecting package pkg:npm/@intlify/core-base. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-p2ph-7g93-hw3m | CVE-2025-27597 | HIGH | Vue I18n Allows Prototype Pollution in `handleFlatJson` |
| GHSA-x8qp-wqqm-57ph | CVE-2025-53892 | MODERATE | vue-i18n's escapeParameterHtml does not prevent DOM-based XSS through its tag attributes |
| GHSA-9r9m-ffp6-9x4v | CVE-2024-52809 | MODERATE | vue-i18n has cross-site scripting vulnerability with prototype pollution |
CVE-2025-27597 at a Glance
How to Fix CVE-2025-27597
To remediate this vulnerability, upgrade all affected Petite 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.
npm install petite-vue-i18n@11.1.2
npm install vue-i18n@10.0.6
npm install vue-i18n@11.1.2
npm install @intlify/message-resolver@9.1.11
npm install @intlify/vue-i18n-core@9.14.3
npm install petite-vue-i18n@10.0.6
npm install vue-i18n@9.14.3
npm install @intlify/core-base@9.1.11
npm install @intlify/core@9.1.11
npm install @intlify/vue-i18n-core@10.0.6
npm install @intlify/vue-i18n-core@11.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls petite-vue-i18n
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-27597, inspect your project dependencies using npm:
npm ls petite-vue-i18n
Analyze the terminal output to locate any version of Petite vue i18n in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 11.1.2), your application is affected.
Note: The npm ls petite-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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Petite 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
CVE-2025-27597 Affected Petite vue i18n Versions
11 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
petite-vue-i18n
|
npm |
≥ 11.0.0-beta.0
< 11.1.2
|
11.1.2
|
|
vue-i18n
|
npm |
≥ 10.0.0-alpha.1
< 10.0.6
|
10.0.6
|
|
vue-i18n
|
npm |
≥ 11.0.0-beta.0
< 11.1.2
|
11.1.2
|
|
@intlify/message-resolver
|
npm |
≥ 9.1.0
< 9.1.11
|
9.1.11
|
|
@intlify/vue-i18n-core
|
npm |
≥ 9.2.0
< 9.14.3
|
9.14.3
|
|
petite-vue-i18n
|
npm |
≥ 10.0.0
< 10.0.6
|
10.0.6
|
|
vue-i18n
|
npm |
≥ 9.1.0
< 9.14.3
|
9.14.3
|
|
@intlify/core-base
|
npm |
≥ 9.1.0
< 9.1.11
|
9.1.11
|
|
@intlify/core
|
npm |
≥ 9.1.0
< 9.1.11
|
9.1.11
|
|
@intlify/vue-i18n-core
|
npm |
≥ 10.0.0-alpha.1
< 10.0.6
|
10.0.6
|
|
@intlify/vue-i18n-core
|
npm |
≥ 11.0.0-beta.0
< 11.1.2
|
11.1.2
|
References
Frequently Asked Questions
What is CVE-2025-27597?
Which Petite vue i18n versions are affected?
What version fixes CVE-2025-27597?
Is petite-vue-i18n affected?
Is vue-i18n affected?
What CWE is associated with CVE-2025-27597?
How can I check npm dependencies for CVE-2025-27597?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p2ph-7g93-hw3m",
"modified" : "2026-08-25T20:44:02Z",
"published" : "2025-03-07T15:58:24Z",
"aliases" : [ "CVE-2025-27597" ],
"summary" : "Vue I18n Allows Prototype Pollution in `handleFlatJson`",
"details" : "**Vulnerability type:**\nPrototype Pollution\n\n**Vulnerability Location(s):**\n```js\n# v9.1\nnode_modules/@intlify/message-resolver/index.js\n\n# v9.2 or later\nnode_modules/@intlify/vue-i18n-core/index.js\n```\n\n**Description:**\n\nThe 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.\n\nMoreover, 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.\n\n\n**PoC:**\n\n```bash\n// install the package with the latest version\n~$ npm install @intlify/message-resolver@9.1.10\n// run the script mentioned below \n~$ node poc.js\n//The expected output (if the code still vulnerable) is below. \n// Note that the output may slightly differs from function to another.\nBefore Attack: {}\nAfter Attack: {\"pollutedKey\":123}\n```\n\n```js\n// poc.js\n(async () => {\n const lib = await import('@intlify/message-resolver');\n var someObj = {}\n console.log(\"Before Attack: \", JSON.stringify({}.__proto__));\n try {\n // for multiple functions, uncomment only one for each execution.\n lib.handleFlatJson ({ \"__proto__.pollutedKey\": \"pollutedValue\" })\n } catch (e) { }\n console.log(\"After Attack: \", JSON.stringify({}.__proto__));\n delete Object.prototype.pollutedKey;\n})();\n```",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/message-resolver"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.1.0"
}, {
"fixed" : "9.1.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/vue-i18n-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.2.0"
}, {
"fixed" : "9.14.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "petite-vue-i18n"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.0.0"
}, {
"fixed" : "10.0.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "vue-i18n"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.1.0"
}, {
"fixed" : "9.14.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/core-base"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.1.0"
}, {
"fixed" : "9.1.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.1.0"
}, {
"fixed" : "9.1.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/vue-i18n-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.0.0-alpha.1"
}, {
"fixed" : "10.0.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@intlify/vue-i18n-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0-beta.0"
}, {
"fixed" : "11.1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "petite-vue-i18n"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0-beta.0"
}, {
"fixed" : "11.1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "vue-i18n"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.0.0-alpha.1"
}, {
"fixed" : "10.0.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "vue-i18n"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0-beta.0"
}, {
"fixed" : "11.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/security/advisories/GHSA-p2ph-7g93-hw3m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27597"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/commit/4bb6eacda7fc2cde5687549afa0efb27ca40862a"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/commit/d21e06a7440eed8ada7f522b22fcf830b98d3a53"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/commit/fbda9988d3ddd3a1a21740d506d2c183d6b6e36a"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/commit/feaf13fcff427f2cb1d5ec8076e639506ba28f9e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/intlify/vue-i18n"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/releases/tag/v10.0.6"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/releases/tag/v11.1.2"
}, {
"type" : "WEB",
"url" : "https://github.com/intlify/vue-i18n/releases/tag/v9.14.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-07T15:58:24Z",
"nvd_published_at" : "2025-03-07T16:15:39Z"
}
}