CVE-2026-48714
JSON

9.1critical

i18next-http-middleware missingKeyHandler does not reject keys whose segments contain prototype-polluting names

Severity
9.1critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.66% (higher than 46% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-f49m-vf83-692w

Description

i18next-http-middleware is a middleware to be used with Node.js web frameworks like express or Fastify and also for Deno. In versions prior to 3.9.7, the missingKeyHandler blocked the literal request-body keys __proto__, constructor, and prototype (added in 3.9.3, see GHSA-5fgg-jcpf-8jjw), but did not reject dotted variants such as "__proto__.polluted". Downstream backends that split the missing-key string on a configured keySeparator (notably i18next-fs-backend ≤ 2.6.5) hand these keys to an unguarded setPath() walker that writes to Object.prototype. Applications that expose missingKeyHandler to untrusted input AND use i18next-fs-backend ≤ 2.6.5 are directly exploitable for remote prototype pollution. Other downstream backends that split the missing-key string the same way may be similarly affected. Depending on the host application, polluted prototype properties may cause crashes, corrupted translation behaviour, configuration poisoning, or bypasses of property-based security checks. This issue has been fixed in version 3.9.7. If developers cannot upgrade immediately, they should do the following: do not expose missingKeyHandler to untrusted users (mount it behind authentication, or remove the route), add a request-body filter ahead of the handler that rejects any top-level key containing __proto__, constructor, or prototype after splitting on their configured keySeparator, and disable missing-key persistence (saveMissing: false) when accepting writes from untrusted input.

Affected

Product or packageVersionsReported by
i18next i18next-http-middleware< 3.9.7, before 3.9.7CVE List, NVD
i18next-http-middleware (npm)before 3.9.7GitHub Advisory Database

All scores

GitHub_M9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-1321

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

i18next-http-middleware is a middleware to be used with Node.js web frameworks like express or Fastify and also for Deno. In versions prior to 3.9.7, the missingKeyHandler blocked the literal request-body keys __proto__, constructor, and prototype (added in 3.9.3, see GHSA-5fgg-jcpf-8jjw), but did not reject dotted variants such as "__proto__.polluted". Downstream backends that split the missing-key string on a configured keySeparator (notably i18next-fs-backend ≤ 2.6.5) hand these keys to an unguarded setPath() walker that writes to Object.prototype. Applications that expose missingKeyHandler to untrusted input AND use i18next-fs-backend ≤ 2.6.5 are directly exploitable for remote prototype pollution. Other downstream backends that split the missing-key string the same way may be similarly affected. Depending on the host application, polluted prototype properties may cause crashes, corrupted translation behaviour, configuration poisoning, or bypasses of property-based security checks. This issue has been fixed in version 3.9.7. If developers cannot upgrade immediately, they should do the following: do not expose missingKeyHandler to untrusted users (mount it behind authentication, or remove the route), add a request-body filter ahead of the handler that rejects any top-level key containing __proto__, constructor, or prototype after splitting on their configured keySeparator, and disable missing-key persistence (saveMissing: false) when accepting writes from untrusted input.

GitHub Advisory Database
Impact

i18next-http-middleware ≤ 3.9.6's missingKeyHandler blocked the literal request-body keys __proto__, constructor, and prototype (added in 3.9.3, see GHSA-5fgg-jcpf-8jjw), but did not reject dotted variants such as "__proto__.polluted". Downstream backends that split the missing-key string on a configured keySeparator (notably i18next-fs-backend ≤ 2.6.5) hand these keys to an unguarded setPath() walker that writes to Object.prototype.

Applications that expose missingKeyHandler to untrusted input AND use i18next-fs-backend ≤ 2.6.5 are directly exploitable for remote prototype pollution. Other downstream backends that split the missing-key string the same way may be similarly affected.

Depending on the host application, polluted prototype properties may cause crashes, corrupted translation behaviour, configuration poisoning, or bypasses of property-based security checks.

Patches

Fixed in i18next-http-middleware 3.9.7. A new utils.hasUnsafeKeySegment(key, keySeparator) helper is now used by missingKeyHandler; the configured i18next.options.keySeparator is honoured (default .; false disables segment splitting and only the literal-key denylist applies). Legitimate dotted keys (e.g. "header.title") are unaffected.

The root-cause fix has been shipped in i18next-fs-backend 2.6.6 — see the companion advisory.

Workarounds

If users cannot upgrade immediately:

  • Do not expose missingKeyHandler to untrusted users (mount it behind authentication, or remove the route).
  • Add a request-body filter ahead of the handler that rejects any top-level key containing __proto__, constructor, or prototype after splitting on a configured keySeparator.
  • Disable missing-key persistence (saveMissing: false) when accepting writes from untrusted input.
Resources
  • Original report by @codeswhite.
  • Companion advisory in i18next-fs-backend: GHSA-2933-q333-qg83.
  • Previous i18next-http-middleware security release: GHSA-5fgg-jcpf-8jjw and GHSA-c3h8-g69v-pjrg (in 3.9.3).
NVD (es)

i18next-http-middleware es un middleware para ser usado con frameworks web de Node.js como express o Fastify y también para Deno. En versiones anteriores a la 3.9.7, el missingKeyHandler bloqueaba las claves literales del cuerpo de la solicitud __proto__, constructor y prototype (añadidas en la 3.9.3, ver GHSA-5fgg-jcpf-8jjw), pero no rechazaba variantes con puntos como ’__proto__.polluted’. Backends descendientes que dividen la cadena de clave faltante en un keySeparator configurado (notablemente i18next-fs-backend ? 2.6.5) entregan estas claves a un ’walker’ setPath() sin protección que escribe en Object.prototype. Las aplicaciones que exponen el missingKeyHandler a entrada no confiable Y usan i18next-fs-backend ? 2.6.5 son directamente explotables para la contaminación remota de prototipos. Otros backends descendientes que dividen la cadena de clave faltante de la misma manera pueden verse afectados de manera similar. Dependiendo de la aplicación anfitriona, las propiedades de prototipo contaminadas pueden causar fallos, comportamiento de traducción corrupto, envenenamiento de la configuración o derivaciones de comprobaciones de seguridad basadas en propiedades. Este problema ha sido solucionado en la versión 3.9.7. Si los desarrolladores no pueden actualizar inmediatamente, deben hacer lo siguiente: no exponer el missingKeyHandler a usuarios no confiables (montarlo detrás de autenticación, o eliminar la ruta), añadir un filtro de cuerpo de solicitud antes del gestor que rechace cualquier clave de nivel superior que contenga __proto__, constructor o prototype después de dividirla en su keySeparator configurado, y deshabilitar la persistencia de claves faltantes (saveMissing: false) al aceptar escrituras de entrada no confiable.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-48714 changed 2026-06-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-f49m-vf83-692w changed 2026-06-25CC-BY-4.0
NVDCVE-2026-48714 changed 2026-10-25Public domain