i18nextのi18next-http-backendにおける複数の脆弱性
タイトル i18nextのi18next-http-backendにおける複数の脆弱性
概要

i18nextifyは、ソースコードを変更せずにスクリプトタグを通じてウェブサイトの国際化を追加できるJavaScriptライブラリです。バージョン3.0.5以前では、lngおよびnsの値をエンコード、検証、またはパスのサニタイズを行わずに、設定されたloadPathやaddPathのURLテンプレートに直接補間していました。アプリケーションが言語コードの選択をユーザーの入力に任せている場合(デフォルトでは、i18next-browser-languagedetectorが?lng=クエリパラメータ、クッキー、localStorage、リクエストヘッダーを参照します)、攻撃者は送信されるリクエストURLの構造を変更する文字を注入できます。これは単一のURLインジェクションの脆弱性です。攻撃者が制御する値は、出力されるURL文字列の一部として使用される前に無害化されます。攻撃の手法はパストラバーサルおよびより広範なURL構造のインジェクションの両方を含みますが、いずれもinterpolateUrlのサニタイズ修正によって解決されました。この問題はバージョン3.0.5で修正されています。すぐにアップグレードできないユーザーは、i18nextに到達する前にlngやnsをサニタイズすることで回避可能です(具体的には「..」、「/」、「?」、「#」、「%」、空白、制御文字を除去し、文字数を制限してください)。

想定される影響 ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 
対策

ベンダ情報を参照して適切な対策を実施してください。

公表日 2026年5月7日0:00
登録日 2026年6月3日17:04
最終更新日 2026年6月3日17:04
CVSS3.0 : 緊急
スコア 9.1
ベクター CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
影響を受けるシステム
i18next
i18next-http-backend 3.0.5 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2026年06月03日]
  掲載
2026年6月3日17:04

NVD脆弱性情報
CVE-2026-41691
概要

Copilot said: i18nextify is a JavaScript library that adds
i18nextify is a JavaScript library that adds website internationalization via a script tag, without source code changes. Versions prior to 3.0.5 interpolate the lng and ns values directly into the configured loadPath / addPath URL template without any encoding, validation, or path sanitisation. When an application exposes the language-code selection to user-controlled input (the default — i18next-browser-languagedetector reads ?lng= query params, cookies, localStorage, and request headers), an attacker can inject characters that change the structure of the outgoing request URL. This is a single URL-injection vulnerability. The attacker-controlled value is neutralised before it is used as part of an output URL string; the attack shape covers both path traversal and broader URL-structure injection — both are closed by the one interpolateUrl sanitisation fix. This issue has been fixed in version 3.0.5. If users cannot upgrade immediately, they can work around the issue by sanitising lng / ns before they reach i18next (strip .., /, \, ?, #, %, whitespace, and control characters; cap the length).

公表日 2026年5月8日6:16
登録日 2026年5月9日4:10
最終更新日 2026年5月9日1:05
関連情報、対策とツール
共通脆弱性一覧