Jun 25, 2026·7 min read·42 visits
Unauthenticated prototype pollution in i18next-fs-backend < 2.6.6 via missing translation key traversal can lead to RCE or DoS.
A critical prototype pollution vulnerability exists in the i18next-fs-backend Node.js package (prior to version 2.6.6) through its translation persistence layer. When handling missing translation keys, insecure traversal of JSON objects via the getLastOfPath function allows remote, unauthenticated attackers to mutate Object.prototype, potentially leading to denial of service, security bypasses, or remote code execution.
i18next-fs-backend is an open-source backend connector for the Node.js i18next ecosystem designed to load and persist translations using the file system. In enterprise deployments, localized web applications leverage this component to dynamically cache and update language keys on local storage or network-attached shares. The library exposes a write-path capability through functions such as setPath and pushPath, typically invoked by upstream translation middleware to persist missing translation keys requested by clients.\n\nThe primary attack surface is introduced when applications expose the missing translation interface directly to remote users. This is standard behavior for integrations using middleware containing a missing key handler, where dynamic payloads dictate which keys to record. When input validation is missing on these external endpoints, remote attackers can submit specially crafted strings that route directly to the backend filesystem writer.\n\nThis vulnerability class is improper control of generation of prototype attributes, commonly classified as CWE-1321. The backend implementation traverses internal translation object graphs without enforcing boundaries on the properties retrieved from the prototype chain. This lack of restriction allows an unauthenticated remote attacker to compromise the integrity of the host runtime by writing arbitrary properties to global prototypes, leading to global configuration poisoning or application instability.
The root cause of this vulnerability lies in the in-memory JSON object traversal logic implemented in lib/utils.js. Specifically, the helper function getLastOfPath is used to navigate deep nested objects using keys parsed from input paths. When handling missing translation keys, the application splits the key string into individual segments using a configurable character sequence, which defaults to a period.\n\nThe function processes these segments sequentially within a loop, using each segment as a property lookup key against the current node object. When the key segment contains reserved prototype property names, the lookup resolves to the object prototype rather than an isolated data property. Because the implementation did not perform safety checks to verify that properties belonged to the object's own direct namespace, the walker descended directly into the prototype chain.\n\nWhen getLastOfPath finishes traversing the segments, it returns a reference to the final parent object and the target leaf key. Upstream callers then assign the user-provided translation value directly to this returned object reference. If the object reference points to the global object prototype, this assignment mutates the execution context of the entire application, introducing global prototype pollution.
The vulnerable version of getLastOfPath fails to validate key segments against a blocklist or check ownership of the target properties. The loop shifts elements from the stack array and assigns the next cursor without validating if the property matches internal JS keywords.\n\njavascript\n// Vulnerable Implementation\nfunction getLastOfPath (object, path, Empty) {\n const stack = typeof path === 'string' ? path.split('.') : path.slice()\n \n while (stack.length > 1) {\n if (!object) return {}\n\n const key = cleanKey(stack.shift())\n if (!object[key] && Empty) object[key] = new Empty()\n object = object[key] // Vulnerable: Resolves __proto__ and prototype directly\n }\n\n if (!object) return {}\n return {\n obj: object,\n k: cleanKey(stack.shift())\n }\n}\n\n\nThe patch mitigates this risk by establishing an explicit check against a list of unsafe keys prior to resolving the object lookup. The UNSAFE_KEYS array blocks the properties proto, constructor, and prototype from being resolved by the path crawler. If any segment matches these keywords, the function returns an empty structure and drops downstream assignments.\n\njavascript\n// Patched Implementation\nconst UNSAFE_KEYS = ['__proto__', 'constructor', 'prototype']\n\nfunction getLastOfPath (object, path, Empty) {\n const stack = typeof path === 'string' ? path.split('.') : path.slice()\n \n while (stack.length > 1) {\n if (!object) return {}\n\n const key = cleanKey(stack.shift())\n // Secure guard: Drop traversal if an unsafe property is identified\n if (UNSAFE_KEYS.indexOf(key) > -1) return {}\n if (!object[key] && Empty) object[key] = new Empty()\n object = object[key]\n }\n\n if (!object) return {}\n const k = cleanKey(stack.shift())\n if (UNSAFE_KEYS.indexOf(k) > -1) return {}\n return { obj: object, k }\n}\n
Exploitation of CVE-2026-48713 is straightforward and does not require active authentication if the application exposes the missing keys collection endpoint. An attacker starts by crafting an HTTP request containing a query or body payload where the missing key matches the payload sequence. This string represents the path to the prototype attribute the attacker intends to inject into the global runtime.\n\nWhen the upstream server processes the translation request, the server identifies the lookup failure and invokes the persistence handler. The handler sends the key string to the filesystem backend, triggering the vulnerable traversal algorithm in getLastOfPath. The split path resolves the first key segment, shifting the target object context to the application prototype before executing the property assignment.\n\nmermaid\ngraph LR\n A["Attacker Payload: __proto__.polluted"] --> B["i18next Middleware Endpoint"]\n B --> C["Backend.writeFile() Split Key"]\n C --> D["getLastOfPath() Traversal Loop"]\n D --> E["Object.prototype Mutated"]\n\n\nIn standard Node.js applications, successful exploitation results in the creation of a persistent property on Object.prototype. The global mutation infects all subsequently created plain JavaScript objects, which immediately inherit this injected property. This enables attackers to control configuration variables or modify program control flow across separate application features.
The security impact of prototype pollution in Node.js environments depends heavily on the surrounding application logic and installed package dependencies. An attacker can use this vulnerability to achieve remote code execution (RCE) by targeting template engines or process execution libraries. These libraries often check for optional configuration parameters on generic options objects, which can be hijacked via prototype injection.\n\nFor example, if the target application uses libraries like child_process or template utilities that compile code dynamically, injecting attributes such as shell or outputFunctionName can force the application to run arbitrary shell commands. Alternatively, attackers can inject keys to alter authorization checks, such as establishing an isAdmin property that defaults to true on all empty objects.\n\nIf RCE is not viable, the vulnerability can be exploited to cause a widespread Denial of Service (DoS). Injecting properties that overwrite standard object methods like toString or valueOf will cause immediate errors during JSON serialization or logging routines. This results in continuous application crashes whenever the runtime attempts to manipulate basic data structures.
The vulnerability is addressed in i18next-fs-backend version 2.6.6. The primary fix pattern introduces a blocklist filter that stops the traversal mechanism from executing lookup operations against JavaScript's default inheritance keywords. It prevents standard prototype manipulation by rejecting pathways using proto, prototype, or constructor attributes.\n\nThis fix strategy is highly effective for standard Node.js prototype pollution paths, as it blocks the direct vectors required to navigate to Object.prototype. The implementation silently discards any write operations that attempt to utilize these forbidden keys, protecting the application without interrupting execution flow. Security teams should verify that custom wrappers around the library do not override the default parser logic or introduce alternate path splitters.\n\nFor complete protection, deployment teams must audit all dependencies within the translation workflow, upgrading i18next-http-middleware alongside the core backend driver. If upgrading is not possible, security administrators must disable the saveMissing configuration property. This effectively closes the untrusted input vector by preventing the backend translation persistence layer from receiving client-supplied keys.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
i18next-fs-backend i18next | < 2.6.6 | 2.6.6 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-1321 |
| Attack Vector | Network (AV:N) |
| CVSS v3.1 | 9.1 (Critical) |
| EPSS Score | 0.00419 (33.50th percentile) |
| Exploit Status | PoC Available |
| CISA KEV | Not Listed |
The application receives input from an upstream component but does not restrict or sanitize properties before modifying the attributes of a prototype on that object.
CVE-2026-16454 is an object-level authorization bypass vulnerability (CWE-284, CWE-862) in Eclipse hawkBit versions 1.0.3 and prior. The flaw exists within the Direct Device Integration (DDI) REST controller (hawkbit-ddi-resource), where endpoints responsible for enumerating software module metadata and serving firmware binaries fail to verify whether the requested software module is assigned to the authenticated device. Consequently, any device with valid credentials (such as a TargetToken or GatewayToken) can enumerate software module identifiers and download arbitrary firmware artifacts across the entire tenant namespace.
CVE-2026-62284 (GHSA-5w5g-j6hw-6p8f) is a code injection and server-side request forgery vulnerability in the console-proxy component of the OSAC Operator. The RemoteConfigResolver parses Kubernetes Secrets containing kubeconfig files via clientcmd.RESTConfigFromKubeConfig without sanitizing execution-related fields. An attacker with RBAC permissions to create or modify labeled Secrets in monitored namespaces can supply a malicious exec credential plugin, resulting in arbitrary command execution within the console-proxy pod.
CVE-2026-62361 (GHSA-xgjr-7j9q-2h4r) is an authenticated SQL injection and authorization bypass vulnerability in listmonk, an open-source, self-hosted newsletter and mailing list manager written in Go. In versions prior to 6.2.0, the subscriber export endpoint (GET /api/subscribers/export) directly interpolates user-supplied SQL filter expressions into a PostgreSQL query without invoking the table allowlist validation function (validateQueryTables). Consequently, authenticated users possessing the subscribers:sql_query and subscribers:get_all permissions can bypass relational access controls, execute arbitrary subqueries against restricted tables such as users and settings, and modify database state via writable Common Table Expressions (CTEs).
CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.
Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.
CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.