Vulnerabilities in pkg:npm/petite-vue-i18n

PACKAGE
Advisory Identifier: GHSA-p2ph-7g93-hw3m
Advisory Summary

CVE-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.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/petite-vue-i18n

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/petite-vue-i18n. 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-hjwq-mjwj-4x6c CVE-2024-52810 MODERATE @intlify/shared Prototype Pollution vulnerability
GHSA-9r9m-ffp6-9x4v CVE-2024-52809 MODERATE vue-i18n has cross-site scripting vulnerability with prototype pollution

CVE-2025-27597 at a Glance

CVE Identifier CVE-2025-27597
GHSA Identifier GHSA-p2ph-7g93-hw3m
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Petite vue i18n
Package Ecosystem npm
Published Date
Last Updated

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.

petite-vue-i18n fixed: 11.1.2
npm install petite-vue-i18n@11.1.2
vue-i18n fixed: 10.0.6
npm install vue-i18n@10.0.6
vue-i18n fixed: 11.1.2
npm install vue-i18n@11.1.2
@intlify/message-resolver fixed: 9.1.11
npm install @intlify/message-resolver@9.1.11
@intlify/vue-i18n-core fixed: 9.14.3
npm install @intlify/vue-i18n-core@9.14.3
petite-vue-i18n fixed: 10.0.6
npm install petite-vue-i18n@10.0.6
vue-i18n fixed: 9.14.3
npm install vue-i18n@9.14.3
@intlify/core-base fixed: 9.1.11
npm install @intlify/core-base@9.1.11
@intlify/core fixed: 9.1.11
npm install @intlify/core@9.1.11
@intlify/vue-i18n-core fixed: 10.0.6
npm install @intlify/vue-i18n-core@10.0.6
@intlify/vue-i18n-core fixed: 11.1.2
npm install @intlify/vue-i18n-core@11.1.2
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 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

**Vulnerability type:** Prototype Pollution **Vulnerability Location(s):** ```js # v9.1 node_modules/@intlify/message-resolver/index.js # v9.2 or later node_modules/@intlify/vue-i18n-core/index.js ``` **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`. 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:** ```bash // install the package with the latest version ~$ npm install @intlify/message-resolver@9.1.10 // 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} ``` ```js // 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; })(); ```

CVE-2025-27597 Affected Petite vue i18n Versions

11 component(s)
Fixed Versions:
11.1.210.0.69.1.119.14.3
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?
CVE-2025-27597 is a security vulnerability in Petite vue i18n involving Vue I18n Allows Prototype Pollution in `handleFlatJson` under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Petite vue i18n versions are affected?
Affected versions include releases prior to 11.1.2, 10.0.6, 9.1.11, 9.14.3 across affected packages: petite-vue-i18n, vue-i18n, @intlify/message-resolver, @intlify/vue-i18n-core, @intlify/core-base, @intlify/core.
What version fixes CVE-2025-27597?
Upgrading to 11.1.2, 10.0.6, 9.1.11, 9.14.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is petite-vue-i18n affected?
Yes, petite-vue-i18n is affected in releases prior to 11.1.2, 10.0.6. Upgrade your dependency to 11.1.2, 10.0.6 or later.
Is vue-i18n affected?
Yes, vue-i18n is affected in releases prior to 10.0.6, 11.1.2, 9.14.3. Upgrade your dependency to 10.0.6, 11.1.2, 9.14.3 or later.
What CWE is associated with CVE-2025-27597?
CVE-2025-27597 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (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.).
How can I check npm dependencies for CVE-2025-27597?
Run the dependency tree command: 'npm ls petite-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-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"
  }
}