npm / i18next-fs-backend
i18next-fs-backend
What changed in i18next-fs-backend 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
2 breaking4 security1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initi18next-fs-backend 27 changes
Breaking changes 2
Refuses paths whose root differs from the template's root, preventing
lngornsvalues from changing the resulting path type.Filesystem paths are no longer built when ns contains traversal sequences, separators, control characters, prototype keys, or exceeds 128 characters, preventing arbitrary filesystem reads and writes.
Security 4
Path traversal now descends only into own properties, closing an unauthenticated denial of service that could overwrite inherited Object.prototype members.
write() now iterates only own enumerable keys of queuedWrites, preventing prototype pollution from causing writeFile() calls.
Missing-key writes now refuse to traverse
__proto__,constructor, orprototypesegments, preventing prototype pollution from crafted keys.i18next-fs-backend: Path traversal via unsanitised lng/ns allows arbitrary file read/overwrite
Fixes and other changes 1
Namespace values may contain forward slashes again, allowing nested namespace names to load from subfolder locale files.