Nov 24, 2026·10 min read·2 visits
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.
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.
i18next is a widely deployed internationalization framework for JavaScript runtimes, including Node.js and browser environments. It provides functionality for managing translation catalogs, dynamic language switching, and nested resource storage through an internal ResourceStore service. Applications commonly use the public API method i18next.addResourceBundle(lng, ns, resources, deep, overwrite) to dynamically register or update localized translation strings at runtime.
Prior to version 26.3.4, the deepExtend utility function located in src/utils.js contained a flaw in how it checked for the existence of keys on a destination object during recursive merging. Rather than checking if a key existed as an own property on the target object, deepExtend used the JavaScript in operator (if (prop in target)). Because the in operator evaluates to true for every property present anywhere along an object's prototype chain, keys matching built-in methods inherited from Object.prototype—such as hasOwnProperty, toString, or valueOf—were treated as existing sub-objects on the target.
This vulnerability is classified under CWE-471 (Modification of Assumed-Immutable Data) and CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes). While deepExtend explicitly filtered out the __proto__ and constructor keys to prevent classic prototype pollution, it failed to prevent recursion into inherited function objects residing on Object.prototype.
When addResourceBundle is invoked with non-default arguments deep: true and overwrite: true on attacker-controlled JSON structures, the recursion descends into these shared built-in functions. An attacker can then overwrite properties attached to those function instances—most notably Object.prototype.hasOwnProperty.call—with non-callable string values. This corrupts the JavaScript runtime environment globally and triggers unhandled TypeError exceptions across the entire process.
> [!NOTE]
> This vulnerability is distinct from CVE-2026-48713 (i18next-fs-backend) and CVE-2026-48714 (i18next-http-middleware), which involve prototype pollution in setPath key-walking utilities rather than deepExtend inherited property traversal.
The root cause of CVE-2026-63402 is a semantic discrepancy between the JavaScript in operator and own-property verification (Object.prototype.hasOwnProperty) within recursive merge algorithms. In JavaScript, standard plain objects created via object literals ({}) inherit properties and methods from Object.prototype. Furthermore, every function in JavaScript is an object instance of Function and inherits properties and methods from Function.prototype, including call, apply, and bind.
When deepExtend(target, source, overwrite) iterates over the enumerable keys of source, it attempts to protect against prototype pollution by validating if (prop !== '__proto__' && prop !== 'constructor'). This blocklist approach assumes that blocking direct reference to the prototype link (__proto__) and the constructor property is sufficient to isolate the prototype hierarchy from modification.
However, the subsequent check if (prop in target) undermines this isolation. When target is a plain object {} and source contains a key named "hasOwnProperty", the expression "hasOwnProperty" in target evaluates to true because target inherits hasOwnProperty from Object.prototype. deepExtend then checks whether target["hasOwnProperty"] or source["hasOwnProperty"] is a string. Because target["hasOwnProperty"] resolves to the function Object.prototype.hasOwnProperty and source["hasOwnProperty"] is an attacker-supplied object (e.g., { "call": "corrupted" }), neither value is a string.
Consequently, deepExtend executes its recursive branch: deepExtend(target[prop], source[prop], overwrite). In this recursive frame, the new target argument is the global built-in function Object.prototype.hasOwnProperty itself. The loop now iterates over the inner payload { "call": "corrupted" } and evaluates "call" in Object.prototype.hasOwnProperty. Because hasOwnProperty is a function that inherits call from Function.prototype, this check also evaluates to true.
In the second recursion level, source["call"] is a string ("corrupted"). The conditional branch checking for string leaf nodes (isString(source[prop])) matches. If the overwrite flag is true, deepExtend executes target[prop] = source[prop], which directly executes Object.prototype.hasOwnProperty.call = "corrupted". This creates an own property call on the shared Object.prototype.hasOwnProperty function object, shadowing Function.prototype.call with a non-callable string value across the entire V8 or browser execution context.
The vulnerable function deepExtend is defined in src/utils.js. Prior to version 26.3.4, the implementation relied on the in operator on line 113 to determine whether to merge into an existing property or assign a new property directly.
// Vulnerable implementation in src/utils.js (prior to v26.3.4)
export const deepExtend = (target, source, overwrite) => {
for (const prop in source) {
if (prop !== '__proto__' && prop !== 'constructor') {
// FLAW: 'prop in target' checks the entire prototype chain of target.
// Inherited keys like 'hasOwnProperty', 'toString', and 'valueOf' return true.
if (prop in target) {
// 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]) ||
target[prop] instanceof String ||
isString(source[prop]) ||
source[prop] instanceof String
) {
if (overwrite) target[prop] = source[prop];
} else {
// Recurses directly into Object.prototype[prop] if target[prop] is an inherited function
deepExtend(target[prop], source[prop], overwrite);
}
} else {
target[prop] = source[prop];
}
}
}
return target;
};In commit 642137b7786d83661ec3ee53027798dc4b81d30a, the maintainer replaced the in operator check with Object.prototype.hasOwnProperty.call(target, prop):
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]) ||With this change, when deepExtend encounters a key in source such as hasOwnProperty or toString that does not exist as an explicit own property on target, Object.prototype.hasOwnProperty.call(target, prop) returns false. Execution bypasses the recursive merge block and proceeds directly to the else clause: target[prop] = source[prop].
Instead of traversing into Object.prototype.hasOwnProperty and mutating its properties, the assignment target["hasOwnProperty"] = source["hasOwnProperty"] defines a standard own property on the target resource dictionary object. This isolates the attacker-controlled data to the specific translation bundle object without affecting global built-in prototypes.
Assessing fix completeness: the patch is complete for deepExtend. Because deepExtend only processes own properties of target during recursion and blocks __proto__ and constructor at every depth, it can no longer traverse into Object.prototype or Function.prototype via inherited property resolution. Even if an attacker supplies nested objects under hasOwnProperty, target.hasOwnProperty becomes a plain own object on the first assignment, and any subsequent merges only modify that isolated own object.
Exploiting CVE-2026-63402 requires a specific, non-default configuration within the host application. Standard i18next initialization and official backend plugins do not enable the vulnerable code path by default. For an application to be exploitable, three prerequisites must be satisfied simultaneously:
i18next.addResourceBundle(lng, ns, resources, deep, overwrite) (or directly to i18next.services.resourceStore.addResourceBundle).deep) and the fifth parameter (overwrite) must be explicitly set to true.If deep is false (or omitted, as it defaults to false), addResourceBundle assigns the resource bundle directly without invoking deepExtend. If overwrite is false (or omitted, as it defaults to false), deepExtend will recurse into Object.prototype.hasOwnProperty, but the inner assignment if (overwrite) target[prop] = source[prop] will not execute, leaving Object.prototype.hasOwnProperty.call intact.
When both deep: true and overwrite: true are active, an attacker can submit a minimal JSON payload targeting hasOwnProperty.call, toString.call, or valueOf.call. The following proof-of-concept demonstrates how passing a crafted resource bundle through addResourceBundle or deepExtend corrupts the runtime environment:
const i18next = require('i18next');
async function triggerExploit() {
await i18next.init({
lng: 'en',
resources: {
en: { translation: { welcome: 'Hello' } }
}
});
// Verify normal state prior to payload ingestion
console.log('Before:', typeof Object.prototype.hasOwnProperty.call); // "function"
// Attacker-controlled JSON translation payload
const maliciousBundle = JSON.parse('{"hasOwnProperty": {"call": "corrupted"}}');
// Vulnerable API call with deep = true and overwrite = true
i18next.addResourceBundle('en', 'translation', maliciousBundle, true, true);
// Verify shared built-in corruption
console.log('After:', typeof Object.prototype.hasOwnProperty.call); // "string"
// Any subsequent translation lookup or third-party call using hasOwnProperty.call crashes
i18next.t('welcome');
}
triggerExploit();Upon executing i18next.t('welcome') (or any internal path resolution in i18next such as getLastOfPath, getPath, or deepFind), the process immediately throws an unhandled TypeError: Object.prototype.hasOwnProperty.call is not a function. In a Node.js server environment without global crash recovery, this terminates the worker process.
CVE-2026-63402 carries a CVSS v3.1 base score of 5.9 (Medium), defined by the vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H. The high Attack Complexity (AC:H) and Low Privileges Required (PR:L) reflect that exploitation is gated behind non-default API arguments (deep: true, overwrite: true) and typically requires authenticated access to a translation management feature.
The primary impact of successful exploitation is High Availability loss (A:H) via sustained, unrecoverable Denial of Service (DoS). In JavaScript ecosystems, Object.prototype.hasOwnProperty.call(obj, prop) is a foundational idiom used to safely check property ownership on objects that might have a null prototype or a shadowed hasOwnProperty field. Core i18next functions, standard web frameworks (such as Express and Fastify), UI rendering libraries (such as React), and utility packages (such as Lodash) invoke Object.prototype.hasOwnProperty.call continuously during request handling.
Once Object.prototype.hasOwnProperty.call is overwritten with a string value, every subsequent request processed by the affected Node.js event loop or browser thread fails with a TypeError. Unlike transient exceptions caused by malformed input on a single request, this state corruption persists in memory for the lifetime of the JavaScript isolate or process. Recovery requires a complete process restart.
The vulnerability also introduces a Low Integrity impact (I:L). An attacker can attach arbitrary string properties to shared built-in functions on Object.prototype (such as toString, valueOf, isPrototypeOf, and propertyIsEnumerable) or overwrite their Function.prototype methods (call, apply, bind). There is no direct Confidentiality impact (C:N), as the mechanism only permits writing string values onto properties of existing built-in functions.
The definitive remediation for CVE-2026-63402 is to upgrade i18next to version 26.3.4 or later. Version 26.3.4 replaces the prototype-traversing in operator in deepExtend with Object.prototype.hasOwnProperty.call(target, prop), ensuring that inherited properties on Object.prototype are never traversed during deep merges.
# Upgrade using npm
npm install i18next@^26.3.4
# Upgrade using Yarn
yarn add i18next@^26.3.4
# Upgrade using pnpm
pnpm update i18next@^26.3.4For environments where an immediate package upgrade is not possible, developers should audit all call sites of addResourceBundle across the application codebase. If addResourceBundle is used to load user-supplied or external translation payloads, verify whether deep: true and overwrite: true are both necessary. Setting overwrite: false prevents deepExtend from overwriting existing properties on inherited built-in functions.
If both deep: true and overwrite: true are strictly required prior to upgrading, sanitize incoming translation JSON objects by recursively stripping or rejecting any keys that match properties on Object.prototype (hasOwnProperty, toString, valueOf, isPrototypeOf, propertyIsEnumerable, toLocaleString, __defineGetter__, __defineSetter__, __lookupGetter__, __lookupSetter__) before passing the object to addResourceBundle.
As a defense-in-depth measure in Node.js server applications, engineering teams can freeze built-in prototypes during application bootstrap (provided no legacy dependencies rely on monkey-patching standard built-ins):
Object.freeze(Object.prototype);
Object.freeze(Function.prototype);Freezing Object.prototype and Function.prototype marks all built-in methods and their function instances as non-writable and non-configurable, preventing property corruption even if a prototype traversal vulnerability is triggered.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
i18next i18next | < 26.3.4 | 26.3.4 |
| Attribute | Detail |
|---|---|
| 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 |
The software does not properly protect data that is assumed to be immutable from unauthorized modification, allowing internal properties of shared JavaScript built-in function prototypes to be altered.
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.
CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.
CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.
CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.
CVE-2026-133469 is an improper authentication and input type validation vulnerability in the xo-server component of Vates Xen Orchestra and Xen Orchestra Appliance (XOA). Due to Express cookie-parser JSON deserialization combined with loose truthiness validation and unvalidated Redis query construction, an unauthenticated attacker can supply an empty JSON object cookie (authenticationToken=j:{}) to bypass authentication and hijack the first valid active session token stored in the database. This flaw is actively exploited in the wild to gain administrative control over Xen Orchestra deployments and execute root-level commands on underlying XCP-ng and XenServer hypervisors.