CVE-2026-42353: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in i18next i18next-http-middleware
i18next-http-middleware is a middleware to be used with Node.js web frameworks like express or Fastify and also for Deno. Prior to version 3.9.3, i18next-http-middleware passes the user-controlled lng and ns values from getResourcesHandler directly into i18next.services.backendConnector.load(languages, namespaces, …) without any sanitization. Depending on which backend is configured, the unvalidated path segments enable either path traversal or SSRF. This issue has been patched in version 3.9.3.
AI Analysis
Technical Summary
The vulnerability exists in i18next-http-middleware, a Node.js middleware for internationalization, where user input parameters 'lng' and 'ns' are not sanitized before being used in backend resource loading calls. This improper limitation of pathname (CWE-22) and potential SSRF (CWE-918) can be exploited to access unauthorized files or resources. The flaw affects all versions before 3.9.3 and has been addressed by the vendor in that release.
Potential Impact
Successful exploitation can lead to unauthorized access to files or resources outside the intended directory structure (path traversal), or cause the server to make unintended requests (SSRF). The CVSS score of 8.2 reflects a high impact on confidentiality with limited impact on integrity and no impact on availability. There are no reports of active exploitation in the wild.
Mitigation Recommendations
Upgrade i18next-http-middleware to version 3.9.3 or later, where the vulnerability is patched. Since this is a self-hosted middleware component, users must apply the update themselves. Patch status is confirmed by the vendor advisory indicating the fix in version 3.9.3. No additional mitigations are specified.
CVE-2026-42353: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in i18next i18next-http-middleware
Description
i18next-http-middleware is a middleware to be used with Node.js web frameworks like express or Fastify and also for Deno. Prior to version 3.9.3, i18next-http-middleware passes the user-controlled lng and ns values from getResourcesHandler directly into i18next.services.backendConnector.load(languages, namespaces, …) without any sanitization. Depending on which backend is configured, the unvalidated path segments enable either path traversal or SSRF. This issue has been patched in version 3.9.3.
CVSS v3.1
Score 8.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in i18next-http-middleware, a Node.js middleware for internationalization, where user input parameters 'lng' and 'ns' are not sanitized before being used in backend resource loading calls. This improper limitation of pathname (CWE-22) and potential SSRF (CWE-918) can be exploited to access unauthorized files or resources. The flaw affects all versions before 3.9.3 and has been addressed by the vendor in that release.
Potential Impact
Successful exploitation can lead to unauthorized access to files or resources outside the intended directory structure (path traversal), or cause the server to make unintended requests (SSRF). The CVSS score of 8.2 reflects a high impact on confidentiality with limited impact on integrity and no impact on availability. There are no reports of active exploitation in the wild.
Mitigation Recommendations
Upgrade i18next-http-middleware to version 3.9.3 or later, where the vulnerability is patched. Since this is a self-hosted middleware component, users must apply the update themselves. Patch status is confirmed by the vendor advisory indicating the fix in version 3.9.3. No additional mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-26T13:26:14.515Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fe0681cbff5d8610f67317
Added to database: 05/08/2026, 15:51:29 UTC
Last enriched: 05/08/2026, 16:06:43 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 108
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.