npm
CVE-2026-115730
i18next-http-backend: Namespace value starting with / forms a protocol-relative URL when loadPath/addPath places {{ns}} right after a / (bypass of the // check added for GHSA-xvq9-wjp8-hwqf)
- Severity
- Low 3.1
- Published
- 28 Oct 2026
- Last changed
- 28 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 4.0.3
- Exploit chance
- 0.3% in the next 30 daysHigher than 25% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Injection (CWE-74)
- Attack
- Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
- Attacker can
- Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N- Also known as
- GHSA-9jhj-wvmw-cfx5
- Sources
- OSV.dev and GitHub
Description
Same class as GHSA-xvq9-wjp8-hwqf and GHSA-q89c-q3h5-w34g: when an attacker controls the namespace value, the request goes to an attacker-chosen origin. In a browser this loads attacker-controlled translation JSON (content injection into the UI, and XSS where translations are rendered as HTML). The precondition is a template with {{ns}} right after a leading /, for example /{{ns}}/{{lng}}.json. The 4.0.2 maintainer note says templates with a leading / are safe. This case is outside that statement.
isSafeNsUrlSegment rejects any ns containing //, but allows a single leading / (needed for nested namespaces like a/b). Interpolation into /{{ns}}/... puts the template's own / next to the value's /. The result starts with //, which is a protocol-relative URL. The check runs on the value, not on the final URL.
- ns //evil.example: rejected ("unsafe lng/ns value").
- lng http:127.0.0.1:9 (the GHSA-xvq9 payload): rejected.
Affected software
| Software | Affected versions |
|---|---|
i18next-http-backendnpm · osv:npm:i18next-http-backend |
|
About i18next-http-backend
- Weekly downloads (npm)
- 3,830,537npm, 23 Nov 2026
Vulnerabilities in i18next-http-backend
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-118258i18next-http-backend: Query-parameter injection through & and = in lng when loadPath/addPath puts {{lng}} in the query stringLow 3.7 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-115730
- GitHub Advisory Database https://github.com/advisories/GHSA-9jhj-wvmw-cfx5