All vulnerabilities

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.
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
i18next-http-backendnpm · osv:npm:i18next-http-backend
  • Every version before 4.0.3

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
Search the list for i18next-http-backend

References