Description
i18next-http-backend 4.0.2 contains an incomplete fix in interpolateUrl() that allows attackers to redirect translation requests by supplying an ns value starting with a slash. Attackers controlling the namespace value can form a protocol-relative URL in loadPath or addPath templates to load attacker-hosted translations, enabling UI content injection and cross-site scripting.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| i18next | i18next-http-backend | 4.0.2 – < 4.0.3 | 4.0.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-i18next-http-backend | No fix yet | — |
| Ubuntu 26.04 LTS | node-i18next-http-backend | No fix yet | — |
| Ubuntu 24.04 LTS | node-i18next-http-backend | No fix yet | — |
| Ubuntu 22.04 LTS | node-i18next-http-backend | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | i18next-http-backend | < 4.0.3 | 4.0.3 | GHSA-9jhj-wvmw-cfx5 |
References
- GitHub Security Advisory (GHSA-9jhj-wvmw-cfx5) vendor-advisory
- https://github.com/i18next/i18next-http-backend/commit/042c3d4e4e9d73b2ae3aa76b22cb45d48f1e35b7 patch
- GitHub Security Advisory (GHSA-xvq9-wjp8-hwqf) related vendor-advisory
- VulnCheck Advisory: i18next-http-backend 4.0.2 Protocol-Relative URL Injection via Namespace in interpolateUrl third-party-advisory