# CVE-2026-41693: i18next-fs-backend: Path traversal via unsanitised lng/ns allows arbitrary file read/overwrite

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-04-22T17:43:14.000Z
- Modified: 2026-06-17T10:47:00.940Z
- Also known as: GHSA-8847-338w-5hcj
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- i18next i18next-fs-backend: < 2.6.4
- i18next-fs-backend (npm): before 2.6.4

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`

## References

- <https://github.com/i18next/i18next-fs-backend/security/advisories/GHSA-8847-338w-5hcj> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41693> (advisory)
- <https://github.com/i18next/i18next-fs-backend> (package)

## Sources

- CVE List: [CVE-2026-41693](https://www.cve.org/CVERecord?id=CVE-2026-41693), CVE Terms of Use, modified 2026-05-13
- GitHub Advisory Database: [GHSA-8847-338w-5hcj](https://github.com/advisories/GHSA-8847-338w-5hcj), CC-BY-4.0, modified 2026-05-13
- NVD: [CVE-2026-41693](https://nvd.nist.gov/vuln/detail/CVE-2026-41693), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-41693 · Whole record: https://cve.day/CVE-2026-41693.json · Rebuilt by cve.day 2026-11-25T22:59:21.095Z
