{"id":"CVE-2026-144409","aliases":["EUVD-2026-143670","GHSA-mp7h-j8pr-w35w"],"status":"published","title":"Vue I18n: Prototype Pollution via the `locale` argument of `mergeLocaleMessage`, `mergeDateTimeFormat` and `mergeNumberFormat`","description":"Vue I18n is the internationalization plugin for Vue.js. From 7.0.0 until 11.4.14 and from 12.0.0-alpha.1 until 12.0.0-alpha.5, locale-indexed merge and setter APIs use attacker-controlled locale names without requiring own properties or rejecting names inherited from Object.prototype. In modern releases, mergeLocaleMessage() can write into Object.prototype through the special double-underscore proto accessor. The related setters can replace the prototype of shared message or format containers through the double-underscore proto accessor, allowing cross-instance or cross-request resource injection. Applications that pass untrusted locale values or locale-keyed resource objects can experience prototype pollution, built-in modification, denial of service, bypassed checks, or stronger gadget-dependent effects. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.","severity":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-12-04","score":0.00618,"percentile":0.51077,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-1321","CWE-915"],"published":"2026-12-03T19:58:29Z","modified":"2026-12-04T21:25:00Z","exploits":[{"source":"pocgithub","id":"googlesky/CVE-2026-144409","title":"googlesky/CVE-2026-144409","date":"2026-12-05","url":"https://github.com/googlesky/CVE-2026-144409"}],"fixes":[{"ecosystem":"npm","package":"vue-i18n","fixed_in":["9.0.0","11.4.14","12.0.0-alpha.5"],"sources":["ghsa"]},{"ecosystem":"npm","package":"petite-vue-i18n","fixed_in":["11.4.14","12.0.0-alpha.5"],"sources":["ghsa"]},{"ecosystem":"npm","package":"@intlify/vue-i18n-core","fixed_in":["11.4.14","12.0.0-alpha.5"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"9.0.0"}]}]},{"source":"ghsa","ecosystem":"npm","package":"vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.0.0"},{"last_affected":"11.4.13"},{"fixed":"11.4.14"}]}]},{"source":"ghsa","ecosystem":"npm","package":"vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.1"},{"last_affected":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.5"}]}]},{"source":"ghsa","ecosystem":"npm","package":"petite-vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.2.0-alpha.7"},{"last_affected":"11.4.13"},{"fixed":"11.4.14"}]}]},{"source":"ghsa","ecosystem":"npm","package":"petite-vue-i18n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.1"},{"last_affected":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.5"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/vue-i18n-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.2.0-alpha.7"},{"last_affected":"11.4.13"},{"fixed":"11.4.14"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@intlify/vue-i18n-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0-alpha.1"},{"last_affected":"12.0.0-alpha.4"},{"fixed":"12.0.0-alpha.5"}]}]},{"source":"ghsa","ecosystem":"npm","package":"vue-i18n-bridge","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"10.0.0-alpha.1"}]}]}],"products":[{"vendor":"intlify","product":"vue-i18n"}],"references":[{"url":"https://github.com/intlify/vue-i18n/security/advisories/GHSA-mp7h-j8pr-w35w","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/intlify/vue-i18n/pull/2681","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/intlify/vue-i18n/commit/0218ce4a9b4d2b67633a8c53cb627a2a625a6c94","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/intlify/vue-i18n/commit/644f9c586e56758731c0ce7b1a52998ad782d6a9","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/intlify/vue-i18n/releases/tag/v11.4.14","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/intlify/vue-i18n/releases/tag/v12.0.0-alpha.5","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144409","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mp7h-j8pr-w35w"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144409.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-144409","title":"Vue I18n: Prototype Pollution via the `locale` argument of `mergeLocaleMessage`, `mergeDateTimeFormat` and `mergeNumberFormat`","description":"Vue I18n is the internationalization plugin for Vue.js. From 7.0.0 until 11.4.14 and from 12.0.0-alpha.1 until 12.0.0-alpha.5, locale-indexed merge and setter APIs use attacker-controlled locale names without requiring own properties or rejecting names inherited from Object.prototype. In modern releases, mergeLocaleMessage() can write into Object.prototype through the special double-underscore proto accessor. The related setters can replace the prototype of shared message or format containers through the double-underscore proto accessor, allowing cross-instance or cross-request resource injection. Applications that pass untrusted locale values or locale-keyed resource objects can experience prototype pollution, built-in modification, denial of service, bypassed checks, or stronger gadget-dependent effects. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.","status":"published","published":"2026-12-03T19:58:29.848Z","modified":"2026-12-04T16:55:37.18Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-915","CWE-1321"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","date":"2026-12-04"},"updated_at":"2026-12-04T17:03:25.769949Z"}],"euvd":[{"id":"EUVD-2026-143670","description":"Vue I18n is the internationalization plugin for Vue.js. From 7.0.0 until 11.4.14 and from 12.0.0-alpha.1 until 12.0.0-alpha.5, locale-indexed merge and setter APIs use attacker-controlled locale names without requiring own properties or rejecting names inherited from Object.prototype. In modern releases, mergeLocaleMessage() can write into Object.prototype through the special double-underscore proto accessor. The related setters can replace the prototype of shared message or format containers through the double-underscore proto accessor, allowing cross-instance or cross-request resource injection. Applications that pass untrusted locale values or locale-keyed resource objects can experience prototype pollution, built-in modification, denial of service, bypassed checks, or stronger gadget-dependent effects. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.","status":"published","published":"2026-12-03T19:58:29Z","modified":"2026-12-04T16:55:37Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-12-03T21:34:41.393181Z"}],"ghsa":[{"id":"GHSA-mp7h-j8pr-w35w","title":"Vue I18n: Prototype Pollution via the `locale` argument of `mergeLocaleMessage`, `mergeDateTimeFormat` and `mergeNumberFormat`","description":"### Summary\n\nIn vue-i18n v9 and later, `mergeLocaleMessage()`, `mergeDateTimeFormat()` and `mergeNumberFormat()` look up the entry to merge into with `container[locale]`. When the locale is the name of a property inherited from `Object.prototype`, this lookup returns a built-in object, and the methods write into it:\n\n- With `'__proto__'`, all three methods write into `Object.prototype`.\n- With `'constructor'`, `mergeDateTimeFormat()` and `mergeNumberFormat()` write into the global `Object`. A format with a key such as `keys` replaces `Object.keys`.\n- With the names of most other `Object.prototype` methods, such as `'toString'`, `mergeDateTimeFormat()` and `mergeNumberFormat()` write into those built-in functions.\n\n`setLocaleMessage()`, `setDateTimeFormat()` and `setNumberFormat()` do not write into built-in objects, but with `'__proto__'` they replace the prototype of the container: the `messages`, `datetimeFormats` or `numberFormats` object passed to `createI18n()` or `useI18n()`, which vue-i18n uses as is, without copying. The given object then supplies messages or formats for locales that have none of their own, in every instance that uses the same object.\n\nAn application that passes an untrusted value as the locale (for example, one taken from a URL parameter, a cookie or the `Accept-Language` header) lets an attacker pollute the global prototype chain, modify built-in objects, or inject messages. `useI18n({ useScope: 'global' })` passes the keys of its `messages`, `datetimeFormats` and `numberFormats` options to these methods as locales, so untrusted keys there (for example, from `JSON.parse`) have the same effect.\n\nThis affects the methods of the global and local composers (`i18n.global`, `useI18n()`) and of the Legacy API `VueI18n` instance (v9 to v11), in server-side rendering and in the browser. Stable releases of `petite-vue-i18n` have no datetime or number format APIs, so only `mergeLocaleMessage()` and `setLocaleMessage()` with `'__proto__'` apply there.\n\nvue-i18n v7 and v8 (for Vue 2) and `vue-i18n-bridge` are also affected:\n\n- From vue-i18n 7.0.2, `mergeDateTimeFormat()` and `mergeNumberFormat()` write into built-in objects, and so does `mergeLocaleMessage()` up to 8.15.2.\n- From vue-i18n 7.0.0 to 7.6.0, `setLocaleMessage()`, `setDateTimeFormat()` and `setNumberFormat()` with `'__proto__'` replace the prototype of the container, as described above. In 7.0.0 and 7.0.1, `mergeLocaleMessage()` with `'__proto__'` does the same.\n- `vue-i18n-bridge` is affected through `mergeDateTimeFormat()`, `mergeNumberFormat()` and the three setters.\n\n### Details\n\nThe three methods look up the object to merge into with `container[locale]`, and then copy into it ([composer.ts in v11.4.13](https://github.com/intlify/vue-i18n/blob/v11.4.13/packages/vue-i18n-core/src/composer.ts#L2532-L2592)):\n\n```ts\nfunction mergeLocaleMessage(locale, message) {\n  _messages.value[locale] = _messages.value[locale] || {}\n  // ...\n  deepCopy(message, _messages.value[locale])\n}\n\nfunction mergeDateTimeFormat(locale, format) {\n  _datetimeFormats.value[locale] = assign(_datetimeFormats.value[locale] || {}, format)\n  // ...\n}\n\nfunction mergeNumberFormat(locale, format) {\n  _numberFormats.value[locale] = assign(_numberFormats.value[locale] || {}, format)\n  // ...\n}\n```\n\nThe containers are ordinary objects, so `container[locale]` also finds properties inherited from `Object.prototype`:\n\n- For `'__proto__'`, the lookup goes through the `__proto__` accessor and returns `Object.prototype`. `deepCopy()` and `assign()` (`Object.assign`) then copy the given keys onto `Object.prototype`. `deepCopy()` skips `__proto__` keys in its source (the fix for CVE-2024-52810), but it does not check its destination.\n- For `'constructor'`, the lookup returns the global `Object`, and `assign()` copies the given keys onto it. For `'toString'`, `'valueOf'` and most other methods of `Object.prototype`, it returns that built-in function. When the containers are Vue reactive proxies, as in the browser, Vue 3.2.46 and later return their own wrapper for `'hasOwnProperty'`, so that name writes into the wrapper instead. `mergeLocaleMessage()` throws `Invalid value` for these names, because `deepCopy()` throws when its destination is not an object.\n\n`setLocaleMessage()`, `setDateTimeFormat()` and `setNumberFormat()` assign with `container[locale] = value`. For `'__proto__'`, this calls the `__proto__` setter, which replaces the prototype of the container with the given object. The container is the object the application passed in, so every instance that uses the same object sees the change.\n\nv7, and v8 up to 8.3.0, merge with `Vue.util.extend(this._vm.dateTimeFormats[locale] || {}, format)`, and 8.3.1 and later with `merge(this._vm.dateTimeFormats[locale] || {}, format)` (the same for number formats). Both write into their first argument. From 7.0.2 to 8.15.2, `mergeLocaleMessage()` also merges into `this._vm.messages[locale] || {}`; 8.15.3 changed it to merge into a new object. Up to 7.6.0, the setters assign with `this._vm.messages[locale] = message` and so on; 7.7.0 changed them to `this._vm.$set()`. `vue-i18n-bridge` uses the composer above, but its `mergeLocaleMessage()` passes the call to the vue-i18n v8 instance it wraps before copying, and that instance stores a new object for the locale, so only the other methods are affected.\n\n### PoC\n\n`'__proto__'` with `mergeLocaleMessage()`:\n\n```bash\nnpm install vue-i18n@11.4.13 vue\nnode poc.mjs\n```\n\nOutput:\n\n```text\nBefore Attack:  {}\nAfter Attack:  {\"pollutedKey\":123}\n```\n\n```js\n// poc.mjs\nimport { createI18n } from 'vue-i18n'\n\nconst i18n = createI18n({ legacy: false, locale: 'en', messages: { en: {} } })\n\n// e.g. a locale taken from a URL parameter such as `?lang=__proto__`\nconst lang = '__proto__'\n\nconsole.log('Before Attack: ', JSON.stringify({}.__proto__))\ni18n.global.mergeLocaleMessage(lang, { pollutedKey: 123 })\nconsole.log('After Attack: ', JSON.stringify({}.__proto__))\n\ndelete Object.prototype.pollutedKey\n```\n\n`mergeDateTimeFormat('__proto__', format)` and `mergeNumberFormat('__proto__', format)` pollute `Object.prototype` in the same way.\n\n`'constructor'` with `mergeDateTimeFormat()`:\n\n```bash\nnode poc-constructor.mjs\n```\n\nOutput:\n\n```text\nBefore Attack:  function\nAfter Attack:  object\nTypeError: Object.keys is not a function\n```\n\n```js\n// poc-constructor.mjs\nimport { createI18n } from 'vue-i18n'\n\nconst i18n = createI18n({ legacy: false, locale: 'en', messages: { en: {} } })\n\n// e.g. a locale taken from a URL parameter such as `?lang=constructor`\nconst lang = 'constructor'\n\nconsole.log('Before Attack: ', typeof Object.keys)\ni18n.global.mergeDateTimeFormat(lang, { keys: { year: 'numeric' } })\nconsole.log('After Attack: ', typeof Object.keys)\n\ntry {\n  Object.keys({})\n} catch (error) {\n  console.log(String(error))\n}\n```\n\n`mergeNumberFormat('constructor', format)` has the same effect.\n\n`'__proto__'` with `setLocaleMessage()`:\n\n```bash\nnode poc-set.mjs\n```\n\nOutput:\n\n```text\nBefore Attack:  hello\nAfter Attack:  injected\n```\n\n```js\n// poc-set.mjs\nimport { createI18n } from 'vue-i18n'\n\nconst i18n = createI18n({\n  legacy: false,\n  locale: 'ja',\n  fallbackLocale: 'en',\n  missingWarn: false,\n  fallbackWarn: false,\n  messages: { en: { hello: 'hello' } }\n})\n\nconsole.log('Before Attack: ', i18n.global.t('hello'))\n// e.g. a locale taken from a URL parameter such as `?lang=__proto__`\ni18n.global.setLocaleMessage('__proto__', { ja: { hello: 'injected' } })\nconsole.log('After Attack: ', i18n.global.t('hello'))\n```\n\n### Impact\n\nApplications are affected when an attacker can control the `locale` argument of these methods, or the keys of the `messages`, `datetimeFormats` or `numberFormats` options of `useI18n({ useScope: 'global' })`. For example, an application that loads messages for the locale in the URL:\n\n```js\n// e.g. /:lang/... routes\nconst lang = route.params.lang // attacker-controlled\nconst messages = await fetch(`/api/messages/${lang}`).then(res =\u003e res.json())\ni18n.global.mergeLocaleMessage(lang, messages)\n```\n\n- With `'__proto__'`, the keys of the merged object end up on `Object.prototype`, even when the attacker does not control that object. Almost every object in the page inherits them, and during server-side rendering, so does every later request in the same process.\n- With `'constructor'` (`mergeDateTimeFormat()` and `mergeNumberFormat()`, and in vue-i18n 7.0.2 to 8.15.2 also `mergeLocaleMessage()`), the keys of the merged object end up on the global `Object`. If the attacker also controls that object, they can replace methods such as `Object.keys` and break the page or the server process.\n- With other names, such as `'toString'`, the keys of the merged object end up on that built-in function. If the attacker also controls that object, they can, for example, shadow `Object.prototype.toString.call`, which Vue and vue-i18n use, and break the page or the server process.\n- With `'__proto__'`, the setters let the given object supply messages or formats for locales that have none of their own, in every instance that shares the same `messages`, `datetimeFormats` or `numberFormats` object. During server-side rendering, this can include later requests from other users.\n\nDepending on the application and its dependencies, this can lead to denial of service, bypassed checks, or worse through prototype pollution gadgets.\n\n### Workarounds\n\nIf you cannot upgrade yet, for example because you are on v7 to v10 or use `vue-i18n-bridge`:\n\n- Check the locale against the locales your application supports before passing it to these methods, including `setLocaleMessage()`, `setDateTimeFormat()` and `setNumberFormat()`.\n- Do not pass untrusted objects as the `messages`, `datetimeFormats` or `numberFormats` options of `useI18n({ useScope: 'global' })`.\n\n```js\nconst SUPPORTED_LOCALES = ['en', 'ja']\n\nif (SUPPORTED_LOCALES.includes(lang)) {\n  i18n.global.mergeLocaleMessage(lang, messages)\n}\n```\n\n### Patches\n\nTBD: fixed in the v11 and v12 alpha releases of `vue-i18n`, `petite-vue-i18n` and `@intlify/vue-i18n-core`. The fix also covers `setLocaleMessage()`, `setDateTimeFormat()` and `setNumberFormat()`.\n\nv7 to v10 and `vue-i18n-bridge` are no longer supported and will not be fixed. Please migrate to v11.\n\n### Related\n\n- [OWASP Prototype Pollution Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Prototype_Pollution_Prevention_Cheat_Sheet.html)\n- [GHSA-hjwq-mjwj-4x6c](https://github.com/intlify/vue-i18n/security/advisories/GHSA-hjwq-mjwj-4x6c) (CVE-2024-52810): prototype pollution in `deepCopy()` through its source","status":"published","published":"2026-12-04T21:24:58Z","modified":"2026-12-04T21:25:00Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-915","CWE-1321"],"updated_at":"2026-12-04T21:29:07.552987Z"}],"nvd":[{"id":"CVE-2026-144409","description":"Vue I18n is the internationalization plugin for Vue.js. From 7.0.0 until 11.4.14 and from 12.0.0-alpha.1 until 12.0.0-alpha.5, locale-indexed merge and setter APIs use attacker-controlled locale names without requiring own properties or rejecting names inherited from Object.prototype. In modern releases, mergeLocaleMessage() can write into Object.prototype through the special double-underscore proto accessor. The related setters can replace the prototype of shared message or format containers through the double-underscore proto accessor, allowing cross-instance or cross-request resource injection. Applications that pass untrusted locale values or locale-keyed resource objects can experience prototype pollution, built-in modification, denial of service, bypassed checks, or stronger gadget-dependent effects. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.","status":"published","published":"2026-12-03T20:17:48.35Z","modified":"2026-12-04T17:19:13.577Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"secondary"}],"cwes":["CWE-915","CWE-1321"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","date":"2026-12-04"},"updated_at":"2026-12-04T17:26:29.876621Z"}],"osv":[{"id":"CVE-2026-144409","title":"Vue I18n: Prototype Pollution via the `locale` argument of `mergeLocaleMessage`, `mergeDateTimeFormat` and `mergeNumberFormat`","description":"Vue I18n is the internationalization plugin for Vue.js. From 7.0.0 until 11.4.14 and from 12.0.0-alpha.1 until 12.0.0-alpha.5, locale-indexed merge and setter APIs use attacker-controlled locale names without requiring own properties or rejecting names inherited from Object.prototype. In modern releases, mergeLocaleMessage() can write into Object.prototype through the special double-underscore proto accessor. The related setters can replace the prototype of shared message or format containers through the double-underscore proto accessor, allowing cross-instance or cross-request resource injection. Applications that pass untrusted locale values or locale-keyed resource objects can experience prototype pollution, built-in modification, denial of service, bypassed checks, or stronger gadget-dependent effects. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.","status":"published","published":"2026-12-03T19:58:29.848Z","modified":"2026-12-04T21:02:47.044694338Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-1321","CWE-915"],"updated_at":"2026-12-04T21:27:50.529822Z"}]}}
