{"id":"CVE-2026-41693","published":"2026-05-08T15:38:50Z","modified":"2026-05-13T17:48:00Z","title":"i18next-fs-backend: Path traversal via unsanitised lng/ns allows arbitrary file read/overwrite","vendor":"i18next","product":"i18next-fs-backend","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00292,"percentile":0.22269,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/i18next/i18next-fs-backend/security/advisories/GHSA-8847-338w-5hcj","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":4.45},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"i18next","affectedVersions":[{"vendor":"i18next","product":"i18next-fs-backend","versions":["< 2.6.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-13T17:16:51.513410Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"i18next-fs-backend","vulnerableRanges":["<2.6.4"],"patched":["2.6.4"],"from":["GHSA-8847-338w-5hcj"],"provenance":"source"}],"summary":{"text":"i18next-fs-backend, the filesystem translation backend for i18next on Node.js and Deno, fails to sanitise the lng and ns options before substituting them into its loadPath and addPath templates, so path traversal sequences in those values can point file reads and writes outside the intended locale directory. An unauthenticated remote attacker can exploit this without user interaction when lng or ns is derived from untrusted input, such as a query string, cookie, or header used by an HTTP layer like i18next-http-middleware, letting them read or overwrite arbitrary files the process can access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:57Z"},"euvd":{"id":"EUVD-2026-28793","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-41693","published":"2026-05-08","fixed":"2.6.4","kev":false},{"cve":"CVE-2026-48713","published":"2026-06-15","fixed":"2.6.6","kev":false,"link":{"from":"CVE-2026-41693","to":"CVE-2026-48713","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:i18next-fs-backend","fromFixed":"2.6.4","toFixed":"2.6.6","daysApart":38}]}}],"package":"npm:i18next-fs-backend"}}