Skip to main content

i18next-http-middleware CVE-2026-42353

HIGH
Path Traversal (CWE-22)
2026-04-29 https://github.com/i18next/i18next-http-middleware GHSA-jfgf-83c5-2c4m
8.2
CVSS 3.1 · Vendor: https://github.com/i18next/i18next-http-middleware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed getResourcesHandler endpoint
  2. Delivery
    Craft lng/ns traversal or URL payload
  3. Exploit
    Submit unauthenticated HTTP request
  4. Execution
    Backend interpolates unsanitised token
  5. Persist
    Read arbitrary file or reach internal service
  6. Impact
    Exfiltrate secrets or metadata credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the application to (1) mount i18next-http-middleware's getResourcesHandler on an HTTP-reachable route and (2) configure a backend that interpolates the tokens into a locator - i18next-fs-backend for filesystem path traversal or i18next-http-backend for SSRF. Given that, the attacker simply supplies malicious 'lng'/'ns' query values (e.g. lng=../../etc/passwd&ns=root) with no authentication or user interaction (CVSS PR:N/UI:N). Limiting factors: if the resource handler is not exposed, or a non-path/non-URL backend is used, the vulnerability is not reachable, and the concrete impact (arbitrary read vs SSRF vs memory-exhaustion via unbounded i18next.options.ns growth) is bounded by which backend is present.

Impact

Signals conflict and warrant nuance. The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N, 8.2 High) treats this as remote, unauthenticated, low-complexity with high confidentiality impact, which fits the arbitrary-file-read outcome. However, exploitability is materially gated by configuration: the app must mount getResourcesHandler on a reachable route AND use a backend that interpolates the tokens (fs or http), so real-world attack complexity is higher than AC:L implies. EPSS is very low (0.05%, 16th percentile) and the CVE is not in CISA KEV, indicating no evidence of active or automatable mass exploitation. No SSVC decision data was provided. Net: this is a legitimately serious confidentiality/SSRF bug for the specific stacks that expose the handler with an fs/http backend, but it is a targeted, config-dependent issue rather than an internet-wide automatable threat - prioritise for affected deployments, deprioritise where the resource handler or those backends are not in use.

Exploit ScenarioDerived

An attacker sends an unauthenticated request such as GET /locales/resources.json?lng=../../etc/passwd&ns=root to an app that mounts getResourcesHandler with i18next-fs-backend, and the server returns the contents of an arbitrary file the Node process can read (source, .env, .ssh keys, Docker secrets). Against an i18next-http-backend deployment, the attacker instead reshapes the outbound URL to reach internal-only hosts or a cloud metadata endpoint for credential theft. A working example request is published in the vendor advisory, though no packaged public exploit is otherwise identified.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Arbitrary file read and Server-Side Request Forgery in i18next-http-middleware before 3.9.3 arise because the getResourcesHandler route passes user-controlled 'lng' and 'ns' query parameters straight into i18next's backendConnector.load() with no sanitisation, letting attackers inject path-traversal or URL-shaping payloads through the resource-loading endpoint. The concrete impact depends on the paired backend: with i18next-fs-backend it becomes arbitrary filesystem read (e.g. /etc/passwd, .env, .ssh keys, Docker secrets), and with i18next-http-backend it becomes SSRF against internal services and cloud metadata endpoints. No public exploit identified at time of analysis and EPSS is very low (0.05%), but a working example request is documented in the vendor advisory and a fixed release (3.9.3) is available.

RemediationAI

Vendor-released patch: 3.9.3 - upgrade i18next-http-middleware to 3.9.3 or later, which adds utils.isSafeIdentifier and filters 'lng'/'ns' (rejecting '..' sequences, path separators, control characters, prototype keys, empty strings, and values over 128 characters) before they reach the backend connector. There is no full workaround short of upgrading; as a partial compensating control, front the middleware with a WAF/reverse-proxy rule that rejects requests whose 'lng' or 'ns' parameters contain '..', '/', '\', or URL-structure characters (trade-off: denylist rules can be bypassed with encoding tricks and may block unusual-but-legitimate locale codes). As defence-in-depth at the next layer, also upgrade the configured backend to i18next-fs-backend ≥ 2.6.4 or i18next-http-backend ≥ 3.0.5, which close the same class of abuse. Advisory: https://github.com/i18next/i18next-http-middleware/security/advisories/GHSA-jfgf-83c5-2c4m.

Affected Packages

npm i18next-http-middleware fix: 3.9.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

i18next is a widely used JavaScript internationalization framework; i18next-http-middleware is its Express/Connect-style middleware that, among other things, exposes getResourcesHandler to serve translation resources over HTTP. The vulnerable code forwards the raw 'lng' (language) and 'ns' (namespace) request values into i18next.services.backendConnector.load(languages, namespaces, …). Because pluggable backends interpolate those tokens into a resource locator, the flaw is a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / Path Traversal): with a filesystem backend the tokens become path segments, and with an HTTP backend the same untrusted tokens become part of an outbound URL, producing the CWE-918 SSRF sub-case. The CPE identifies the single affected package pkg:npm/i18next-http-middleware; the actual reachable impact is a property of the configured backend (i18next-fs-backend vs i18next-http-backend), which is why the advisory calls the middleware the 'weakest link' layer.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/i18next/i18next-http-middleware) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
vuln.today AI 6.5 MEDIUM

Remote unauthenticated (AV:N/PR:N/UI:N), but AC:H because it requires a specific backend and the resource handler mounted; C:H for arbitrary file read, A:L for ns memory exhaustion, no integrity impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/i18next/i18next-http-middleware).

CVSS VectorVendor: https://github.com/i18next/i18next-http-middleware

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

Versions of i18next-http-middleware prior to 3.9.3 pass the user-controlled lng and ns values from getResourcesHandler directly into i18next.services.backendConnector.load(languages, namespaces, …) without any sanitisation. Depending on which backend is configured, the unvalidated path segments enable one of two attacks:

  • Filesystem path traversal when the middleware is paired with i18next-fs-backend (or any backend that interpolates lng / ns into a filesystem path).
  • Server-Side Request Forgery (SSRF) when the middleware is paired with i18next-http-backend (or any backend that interpolates into an HTTP URL).

Example request:

GET /locales/resources.json?lng=../../etc/passwd&ns=root

with i18next-fs-backend reads the attacker-chosen file from disk; with i18next-http-backend reshapes the outgoing URL to target an internal service.

Impact

  • Arbitrary file read via fs-style backends - any file the Node process can read becomes reachable (source, configuration, .ssh keys, .env, Docker secrets, etc.).
  • SSRF via http-style backends - requests to internal IPs / hostnames not normally reachable from the internet; combined with cloud metadata endpoints this can escalate to credential theft.
  • Unbounded growth of i18next.options.ns - a now-incidental amplification: the pre-patch getResourcesHandler pushed every unique ns value into the shared i18next.options.ns singleton array without validation or bounds, enabling memory exhaustion from repeated unique payloads.

The severity is bounded by the backend in place, but the middleware itself exposed the unsanitised path; this is the "weakest link" layer.

Affected versions

< 3.9.3.

Patch

Fixed in 3.9.3. The patch introduces utils.isSafeIdentifier and applies it in getResourcesHandler before lng and ns reach the backend connector:

js
languages  = languages.filter(utils.isSafeIdentifier)
namespaces = namespaces.filter(utils.isSafeIdentifier)

isSafeIdentifier uses a denylist approach - it still accepts any legitimate i18next language-code shape (i18next FAQ) - rejecting:

  • .. sequences (relative path traversal)
  • path separators (/, \)
  • control characters (C0/C1)
  • prototype keys (__proto__ / constructor / prototype)
  • empty strings and values longer than 128 characters

Unsafe values are dropped; only safe values reach the backend. The fix is a defence-in-depth layer on top of any sanitisation the backend itself may apply.

Workarounds

No workaround short of upgrading. Front-proxying the middleware with a WAF rule that rejects requests containing .., /, \, or URL-structure characters in lng / ns is a partial mitigation. Upgrading the configured backend (i18next-fs-backend ≥ 2.6.4, i18next-http-backend ≥ 3.0.5) also closes the same attack at the next layer.

Related advisories fixed in the same release

  • GHSA-5fgg-jcpf-8jjw - prototype pollution via setPath and missingKeyHandler. Independently fixable, filed separately per CNA rules.
  • GHSA-c3h8-g69v-pjrg - HTTP response splitting + XSS-filter bypass (CVE-2026-41683).

Credits

Discovered via an internal security audit of the i18next ecosystem.

Resources

Executive ViewAI

Why It Matters

i18next-http-middleware before version 3.9.3 is vulnerable to file-read and internal-access attacks that could expose credentials and configuration files. Organizations using this library face data breach and lateral movement risk and should prioritize patching.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Prevalence
Medium
widely-used i18next ecosystem package, but exposed resource-handler config less common
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)CVE.org

pkg:npm/i18next-http-middleware

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy