Skip to content

CVE-2026-41691 i18next-http-backend has Path Traversal & URL Injection via Unsanitised lng/ns

CriticalCVSS 9.1 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
Debian

Description

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).

Upgrade path

5 packages: 2 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/node-i18next-http-backend(Debian 12) = 2.1.1-1; = 2.4.1+ds-1; = 2.4.1+ds-2; All versions No fix listed No fix yet
debian/node-i18next-http-backend(Debian 13) = 2.4.1+ds-2; All versions No fix listed No fix yet
debian/node-i18next-http-backend(Debian 14) = 2.4.1+ds-2; All versions No fix listed No fix yet
i18next-http-backend < 3.0.5; = < 3.0.5 3.0.5 Fixed
npm i18next-http-backend(npm) < 3.0.5 3.0.5 Fixed

Affected products

ProductAffected versionsFixed in
i18next-http-backend = < 3.0.5 No fix listed
debian/node-i18next-http-backend(Debian:12) All versions No fix listed
debian/node-i18next-http-backend(Debian:14) All versions No fix listed
debian/node-i18next-http-backend(Debian:13) All versions No fix listed
npm i18next-http-backend(npm) < 3.0.5 3.0.5
debian/node-i18next-http-backend(Debian:12) = 2.1.1-1 No fix listed
debian/node-i18next-http-backend(Debian:12) = 2.4.1+ds-1 No fix listed
debian/node-i18next-http-backend(Debian:12) = 2.4.1+ds-2 No fix listed
debian/node-i18next-http-backend(Debian:13) = 2.4.1+ds-2 No fix listed
debian/node-i18next-http-backend(Debian:14) = 2.4.1+ds-2 No fix listed
i18next-http-backend < 3.0.5 3.0.5

References