MEDIUM · CVSS 3.1 5.9 EPSS 0.4% · 27th percentile CWE-1321CWE-471

CVE-2026-63402: i18next deepExtend recurses into inherited built-ins, allowing corruption of shared built-in objects (DoS)

Published 2026-11-23 · Updated 2026-11-23 · Also known as GHSA-6jcc-5g8w-32mx

Summary

The i18next `deepExtend` utility incorrectly uses the `in` operator to check key existence, allowing prototype chain walking that can corrupt shared built-in objects. Engineering and security teams using i18next should upgrade to version 26.3.4 or higher.

Who is affected

Affected deployments are those where attacker-controlled data is explicitly passed into `addResourceBundle` with both `deep: true` and `overwrite: true`. Under these conditions, an attacker can overwrite inherited built-in properties on functions like `Object.prototype.hasOwnProperty`, causing a process-wide and unrecoverable denial of service.

Exploitability

The vulnerability carries a CVSS base score of 5.9 (Medium) with a vector of CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H, indicating it requires high attack complexity and low privileges over a network. The EPSS score is 0.003 (percentile 0.184), and CISA KEV lists active exploitation as no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm i18next >= 0, < 26.3.4 26.3.4 npm install [email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H

Attack vectorNetwork
Attack complexityHigh
Privileges requiredLow
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityHigh

FAQ

What causes the vulnerability in i18next?

The vulnerability stems from using the `in` operator inside `deepExtend` to check key existence, which walks the prototype chain and incorrectly recurses into inherited built-ins when encountering matching source keys.

Is this vulnerability actively exploited in the wild?

No, CISA Known Exploited Vulnerabilities indicates that active exploitation is no.

How can I fix the issue without upgrading?

Upgrading to version 26.3.4 is the official fix; alternatively, ensure untrusted data is not processed by `addResourceBundle` using `deep: true` combined with `overwrite: true`.

Original advisory description
### Summary `deepExtend` in `src/utils.js` (reached via the public `addResourceBundle(lng, ns, data, deep, overwrite)` API) checked key existence with the `in` operator, which walks the prototype chain. A source key matching an inherited built-in (e.g. `hasOwnProperty`, `toString`, `valueOf`) therefore caused the function to recurse into the shared object on `Object.prototype`. With `overwrite: true`, a nested value could overwrite a property of that shared built-in - for example setting `Object.prototype.hasOwnProperty.call` to a non-callable value - corrupting it process-wide and causing an unrecoverable denial of service. This is distinct from CVE-2026-48713 (i18next-fs-backend) and CVE-2026-48714 (i18next-http-middleware), which are prototype pollution via `setPath`/key-walking in different packages. This issue is in i18next core, via a different mechanism (the `in` operator in `deepExtend`), and is gated behind a non-default call configuration. ### Details `src/utils.js` (&le; 26.3.3): ```js export const deepExtend = (target, source, overwrite) => { for (const prop in source) { if (prop !== '__proto__' && prop !== 'constructor') { if (prop in target) { // <-- walks the prototype chain if (isString(target[prop]) || target[prop] instanceof String || isString(source[prop]) || source[prop] instanceof String) { if (overwrite) target[prop] = source[prop]; } else { deepExtend(target[prop], source[prop], overwrite); } } else { target[prop] = source[prop]; } } } return target; }; ``` For `source = { hasOwnProperty: { call: "corrupted" } }` and `target = {}`: `"hasOwnProperty" in target` is `true` (inherited from `Object.prototype`), so the code recurses with `target = Object.prototype.hasOwnProperty`. In that call, `"call" in target` is `true` (inherited from `Function.prototype`), `source.call` is a string, and with `overwrite: true` the assignment sets an own `call` property on `Object.prototype.hasOwnProperty` to the string `"corrupted"`. Every subsequent `Object.prototype.hasOwnProperty.call(...)` then throws `TypeError`, including i18next's own internals. The existing `__proto__`/`constructor` guard does not cover this, because the corruption target is an inherited built-in *function*, not the prototype object itself. ### Proof of Concept ```js import i18next from 'i18next'; await i18next.init({ lng: 'en', resources: { en: { translation: {} } } }); const payload = { hasOwnProperty: { call: 'corrupted' } }; i18next.addResourceBundle('en', 'translation', payload, /* deep */ true, /* overwrite */ true); // Process-wide corruption: Object.prototype.hasOwnProperty.call({}, 'test'); // TypeError: ... is not a function ``` ### Impact Denial of service (process-wide, unrecoverable) and limited integrity impact (a shared built-in property is set to an attacker-supplied value). **Preconditions (why severity is Medium, not High):** the application must pass attacker-controlled data into `addResourceBundle` with **both** `deep: true` and `overwrite: true`. No standard i18next backend or integration does this; it only occurs in explicit application code that merges untrusted content. The default `addResourceBundle` path (no deep merge, or `overwrite` falsy) is not affected. ### Patch Fixed in i18next 26.3.4 by checking existence with `Object.prototype.hasOwnProperty.call(target, prop)` instead of the `in` operator, so inherited keys are copied as plain own data instead of triggering recursion.

References

Source records: GHSA-6jcc-5g8w-32mx (OSV.dev) · EPSS by FIRST, 2026-11-26.