CVE-2026-41693
published high CVSS 3.1 · 8.2i18next-fs-backend: Path traversal via unsanitised lng/ns allows arbitrary file read/overwrite
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| i18next | — | i18next-fs-backend< 2.6.4 | Affected | Not stated | GitHub_M |
Description
i18next-fs-backend is a backend layer for i18next using in Node.js and for Deno to load translations from the filesystem. Prior to version 2.6.4, i18next-fs-backend substitutes the lng and ns options directly into the configured loadPath / addPath templates and then read / write the resulting file from disk. The interpolation is unencoded and unvalidated, so a crafted lng or ns value — containing .., a path separator, a control character, a prototype key, or simply an unexpectedly long string — allows an attacker who can influence either value to read or overwrite files outside the intended locale directory. When lng / ns are derived from untrusted input (request-scoped i18next instances behind an HTTP layer such as i18next-http-middleware, or any framework that lets the end user pick the language via query string, cookie, or header), a single request such as ?lng=../../../../etc/passwd causes the backend to attempt to read that path. This issue has been patched in version 2.6.4.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| i18next | i18next-fs-backend | < 2.6.4 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-73 CWE-73: External Control of File Name or Path
- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
1Provider assertions
2GitHub_M · cna
i18next-fs-backend: Path traversal via unsanitised lng/ns allows arbitrary file read/overwrite
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ae31806f15c58820bc2abcfd03b1bfcd6c857fda027a63fc42a8bc235cd7982e
- Ingested
- 23 Sep 2026, 09:14:00 UTC
- Source record
- Official CVE record