CVE-2026-48713 Details
Description
Versions prior to 2.6.6 are vulnerable to prototype pollution via crafted missing-key strings when used to persist missing translation keys (e.g. via i18next-http-middleware's missingKeyHandler exposed to untrusted input). Backend.writeFile() splits each queued missing-key string on the configured keySeparator (default .) before calling the internal setPath() walker. The walker (getLastOfPath in lib/utils.js) did not guard against unsafe segments, so a key like "__proto__.polluted" was split into ["__proto__", "polluted"] and walked straight into Object.prototype, allowing an attacker to write arbitrary properties onto the global object prototype. Depending on the host application, polluted prototype properties may cause crashes, corrupted translation behaviour, configuration poisoning, or bypasses of property-based security checks. Applications are affected only if the missingKeyHandler (or another route that forwards untrusted request bodies to i18next.t(..., { ... }) with saveMissing: true) is reachable by untrusted users and the default behaviour of splitting missing-key strings on keySeparator is in use (i.e. keySeparator is not false). Apps that do not expose missing-key persistence to untrusted input are not directly affected through this attack path. This issue has been fixed in version 2.6.6. If developers using the library are unable to upgrade immediately, they should take the following precautions: do not expose i18next-http-middleware's missingKeyHandler to untrusted users (mount it behind authentication, or remove the route), disable missing-key persistence (saveMissing: false, or no backend.create implementation) when accepting writes from untrusted input, and set keySeparator: false in their i18next options to disable backend key splitting (note: this also disables nested translation keys).
A prototype pollution vulnerability has been identified in the i18next-fs-backend package, affecting versions prior to 2.6.6. The issue arises when the package is used to persist missing translation keys, particularly through the i18next-http-middleware's missingKeyHandler, which is exposed to untrusted input. The vulnerability allows an attacker to manipulate missing-key strings, which are processed by the Backend.writeFile() method. This method splits the strings based on the configured keySeparator (defaulting to a period) before passing them to an internal function that traverses the key path. The traversal function, however, lacks proper validation against unsafe key segments. As a result, a key like '__proto__.polluted' can be split into segments and written directly to Object.prototype, enabling the attacker to add arbitrary properties to the global object prototype. The impact of this pollution can vary depending on the host application, potentially leading to crashes, disrupted translation processes, poisoned configurations, or bypassed security checks that rely on object properties.
Users can upgrade to i18next-fs-backend version 2.6.6, which addresses the vulnerability by preventing the key traversal function from descending through unsafe key segments like '__proto__', 'constructor', or 'prototype'. If an immediate upgrade is not possible, users should not expose the missingKeyHandler to untrusted input, disable missing-key persistence when accepting writes from untrusted sources, and set keySeparator to false in their i18next options.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| i18next i18next-fs-backend | < 2.6.6 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 15, 2026 | New CVE Received | [email protected] |