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

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, GitHub) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.41% (percentile 27, 2026-11-28)
- **CWE:** CWE-471, CWE-1321
- **Aliases:** GHSA-6jcc-5g8w-32mx
- **Published:** 2026-11-23T20:53:00.000Z
- **Modified:** 2026-11-23T20:53:01.000Z

## Who should check

- Projects that depend on npm package i18next (\< 26.3.4)

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

## Affected and fixed versions

- npm `i18next`: affected \< 26.3.4; fixed 26.3.4 (ghsa)

## Technologies

npm packages

## Mitigation

- Upgrade i18next to 26.3.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-63402. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-63402.md
Affected: i18next < 26.3.4
Fixed in: 26.3.4

Steps:
1. Search this machine and project for i18next (npm): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-63402 being exploited?

There is no confirmed exploitation: CVE-2026-63402 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.41% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-63402?

Medium: CVSS 5.9 (v3.1, scored by GitHub). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-63402?

i18next \< 26.3.4.

### Is there a fix for CVE-2026-63402?

Yes. Fixed in 26.3.4. Upgrade i18next to 26.3.4 or later.

### How do I check if I'm affected by CVE-2026-63402?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/i18next/i18next/security/advisories/GHSA-6jcc-5g8w-32mx>
- patch: <https://github.com/i18next/i18next/commit/642137b7786d83661ec3ee53027798dc4b81d30a>
- other: <https://nvd.nist.gov/vuln/detail/CVE-2026-63402>
- other: <https://github.com/i18next/i18next/releases/tag/v26.3.4>
- other: <https://github.com/advisories/GHSA-6jcc-5g8w-32mx>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-6jcc-5g8w-32mx> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-63402> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-63402>
