CVE-2026-63402: CVE-2026-63402: Prototype-Chain Traversal and Shared Built-in Corruption in i18next
CVE-2026-63402: Prototype-Chain Traversal and Shared Built-in Corruption in i18next Vulnerability ID: CVE-2026-63402 CVSS Score: 5.9 Published: 2026-11-23 CVE-2026-63402 is a prototype-chain traversal and shared bui
CVE-2026-63402: Prototype-Chain Traversal and Shared Built-in Corruption in i18next
Vulnerability ID: CVE-2026-63402
CVSS Score: 5.9
Published: 2026-11-23
CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.
TL;DR
In i18next versions prior to 26.3.4, the deepExtend function uses the 'in' operator instead of an own-property check during recursive object merging. When invoked via addResourceBundle with deep: true and overwrite: true on attacker-controlled input, this allows modification of shared built-in function properties such as Object.prototype.hasOwnProperty.call, resulting in an unrecoverable process-wide Denial of Service via unhandled TypeError exceptions.
⚠️ Exploit Status: POC
Technical Details
- CVE ID: CVE-2026-63402 (GHSA-6jcc-5g8w-32mx)
- Weakness Class: CWE-471 (Modification of Assumed-Immutable Data) / CWE-1321 (Prototype Pollution)
- CVSS v3.1 Score: 5.9 Medium (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H)
- EPSS Score: 0.264% (18.44th Percentile)
- Affected Component: deepExtend in src/utils.js via i18next.addResourceBundle()
- Primary Impact: Process-wide Denial of Service via shared built-in function corruption
- Exploit Status: Proof-of-Concept Available (Not in CISA KEV)
- Fixed Version: i18next 26.3.4
Affected Systems
- i18next (npm package) < 26.3.4
-
i18next: < 26.3.4 (Fixed in:
26.3.4)
Code Analysis
Commit: 642137b
fix(security): deepExtend no longer recurses into inherited properties by replacing 'in' operator check with Object.prototype.hasOwnProperty.call
diff --git a/src/utils.js b/src/utils.js
index f3b8891..c4a753d 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -110,7 +110,7 @@ export const getPathWithDefaults = (data, defaultData, key) => {
export const deepExtend = (target, source, overwrite) => {
for (const prop in source) {
if (prop !== '__proto__' && prop !== 'constructor') {
- if (prop in target) {
+ if (Object.prototype.hasOwnProperty.call(target, prop)) {
// If we reached a leaf string in target or source then replace with source or skip depending on the 'overwrite' switch
if (
isString(target[prop]) ||
Exploit Details
- GitHub: Official regression test case in test/runtime/utils.test.js demonstrating corruption of Object.prototype.hasOwnProperty.call via deepExtend.
- GitHub Security Advisory: Advisory detailing the exploitation mechanism via addResourceBundle with deep: true and overwrite: true.
Mitigation Strategies
- Upgrade i18next to version 26.3.4 or later to ensure deepExtend uses own-property checks.
- Avoid calling i18next.addResourceBundle() with both deep: true and overwrite: true on untrusted or user-supplied JSON payloads.
- Sanitize incoming translation objects against Object.prototype property names (e.g., hasOwnProperty, toString, valueOf) before merging.
- Apply Object.freeze(Object.prototype) and Object.freeze(Function.prototype) at application startup as a defense-in-depth control where compatible.
Remediation Steps:
- Audit package.json and lockfiles (package-lock.json, yarn.lock, pnpm-lock.yaml) to identify i18next versions prior to 26.3.4.
- Run 'npm install i18next@^26.3.4' (or equivalent package manager command) to update the dependency.
- Search the codebase for all occurrences of 'addResourceBundle' and 'deepExtend' to verify whether untrusted data is passed with deep: true and overwrite: true.
- Deploy the updated dependencies and run regression tests verifying that translation bundle loading functions normally.
References
- GitHub Security Advisory GHSA-6jcc-5g8w-32mx
- i18next Fix Commit 642137b7786d83661ec3ee53027798dc4b81d30a
- i18next v26.3.4 Release Notes
- National Vulnerability Database - CVE-2026-63402
- CVE.org Record - CVE-2026-63402
- CVEListV5 Official JSON Record for CVE-2026-63402
- Wiz Vulnerability Database - CVE-2026-63402
Read the full report for CVE-2026-63402 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.