Vulnerabilities/

i18next-http-middleware has path traversal / SSRF via user-controlled language and namespace parameters

Severity:
High

Description

Versions of i18next-http-middleware prior to 3.9.3 pass the user-controlled lng and ns values from getResourcesHandler directly into i18next.services.backendConnector.load(languages, namespaces, …) without any sanitisation.

Recommendation

Update the i18next-http-middleware package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
i18next-http-middleware
Anything's wrong? Let us know Last updated on May 13, 2026