Vue I18n Prototype Pollution via locale argument of merge* APIs (CVE-2026-144409)
Severity: high · Patch status: partial · Since 2026-10-10 · CVE-2024-52810, CVE-2026-144409
A prototype-pollution flaw in vue-i18n's locale-keyed merge and setter APIs (mergeLocaleMessage, mergeDateTimeFormat, mergeNumberFormat and the matching set methods) lets an attacker-chosen locale such as proto, constructor or toString reach built-in objects. The methods index their target with container[locale], so those names return Object.prototype or a built-in function, and the methods then write into it. The result is global prototype pollution, modification of built-ins, or injected messages, in browser and server-side rendering. Only applications that pass untrusted values into these calls are exposed: URL parameters, cookies, Accept-Language, or keys from JSON.parse used as useI18n global-scope keys. The fix (PR 2681) was merged and released on 2026-10-10 in v11.4.14 and 12.0.0-alpha.5, listed under Security Fixes, about eight weeks before the advisory. v7 to v10 and vue-i18n-bridge will not be fixed according to the advisory; migrate to v11. No exploitation is reported.
What to do
- Upgrade vue-i18n, petite-vue-i18n and @intlify/vue-i18n-core to 11.4.14 or later in the v11 line, or 12.0.0-alpha.5 or later in v12 (npm latest dist-tag is 11.4.25 as of 2026-12-05)
- Migrate off v7 to v10 and vue-i18n-bridge: the advisory says these will not be fixed
- Validate locales taken from URL, cookies, Accept-Language or similar input against an allowlist before any merge or set call
- Do not pass untrusted objects as the messages, datetimeFormats or numberFormats options of useI18n({ useScope: 'global' }); copy app-supplied containers defensively
- Run dependency scanners across lockfiles and transitive dependencies to find vulnerable petite-vue-i18n and @intlify/vue-i18n-core copies
Fixed versions
- vue-i18n 11.4.14
- vue-i18n 12.0.0-alpha.5
- petite-vue-i18n 11.4.14
- petite-vue-i18n 12.0.0-alpha.5
- @intlify/vue-i18n-core 11.4.14
- @intlify/vue-i18n-core 12.0.0-alpha.5
Sources
All live incidents on Threat Watch