Categories
CVE-2026-42353 high CVSS 8.2

Path Traversal in i18next-http-middleware (CVE-2026-42353)

Summary

Path traversal in i18next-http-middleware (CVE-2026-42353). Confidential information can be exposed externally. Exploitable via GET /locales/resources.json. Mitigation: upgrade to 3.9.3 or later.

Original description

The description as published by the source.

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.

Source: NIST National Vulnerability Database NVD GitHub Advisory

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2026-42353 has been found in i18next-http-middleware.
Attackers can target a specific entry point like GET /locales/resources.json over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 8.2/10.
What to do: upgrade i18next-http-middleware to 3.9.3 or later.
If unsure, ask your IT team or search "i18next-http-middleware CVE-2026-42353" on the vendor's site.

CVE-2026-42353 (i18next-http-middleware) — CWE-22 / CVSS v3 8.2
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: GET /locales/resources.json / lng / getResourcesHandler / http
Patched: 3.9.3 — apply immediately
Workaround: No workaround short of upgrading.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

❓ What is the problem

Path traversal (CWE-22) exists in i18next-http-middleware. Attackers reach the vulnerable code path via GET /locales/resources.json without authentication.

📍 Affected scope

Check the vendor advisory for the affected versions of i18next-http-middleware. Attack surface: GET /locales/resources.json / lng / getResourcesHandler / http.

🔥 Severity

Severity: High (CVSS 8.2/10). Confidential information can be exposed externally.

🔧 How to fix

Update to 3.9.3.

🛡️ Workaround

Workaround: No workaround short of upgrading.

🔍 Detection

Search webserver/proxy logs for unusual GET /locales/resources.json requests with malformed payloads or SQL meta-characters. Run grep -r 'i18next-http-middleware' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposure identify
    grep -r 'i18next-http-middleware' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で i18next-http-middleware を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Hunt for indicators of compromise detect
    grep 'GET /locales/resources.json' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'

    アクセスログで GET /locales/resources.json への異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。

  3. 3
    Apply temporary workaround mitigate
    No workaround short of upgrading.

    パッチが適用されるまでの応急処置として、No workaround short of upgrading. を実施。回避策の副作用 (機能低下) を確認した上で。

  4. 4
    Apply patch patch
    Upgrade i18next-http-middleware to 3.9.3

    ステージング環境で 3.9.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。

  5. 5
    Post-deployment verification verify
    Replay attack against GET /locales/resources.json on staging to confirm patch closes the vector

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。

Affected packages

npm i18next-http-middleware
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.3"}]}]

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details