CVE-2026-41691: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in i18next i18next-http-backend
CVE-2026-41691 is a path traversal and URL injection vulnerability in i18next-http-backend versions prior to 3.0.5. The issue arises because the library interpolates language (lng) and namespace (ns) values directly into URL templates without encoding or sanitization. This allows an attacker controlling these inputs to manipulate the request URL structure, potentially accessing restricted paths. The vulnerability has been fixed in version 3.0.5. Until upgrading, users can mitigate risk by sanitizing lng and ns inputs to remove dangerous characters and limit length.
AI Analysis
Technical Summary
The i18next-http-backend library versions before 3.0.5 interpolate user-controllable language and namespace parameters directly into URL templates without proper encoding or path sanitization. This improper limitation of pathname allows attackers to inject characters that alter the URL structure, enabling path traversal and broader URL injection attacks. The vulnerability is addressed by the interpolateUrl sanitization fix introduced in version 3.0.5. Users unable to upgrade immediately can mitigate by sanitizing inputs to strip characters such as '..', '/', '\', '?', '#', '%', whitespace, and control characters, and by capping input length.
Potential Impact
An attacker can manipulate the language or namespace parameters to craft URLs that traverse directories or alter URL structure, potentially leading to unauthorized access to resources or unintended backend requests. The CVSS score of 6.5 (medium severity) reflects limited confidentiality and integrity impact without privilege or user interaction requirements. There are no known exploits in the wild at this time.
Mitigation Recommendations
A fixed version 3.0.5 of i18next-http-backend is available and should be applied to remediate this vulnerability. If immediate upgrading is not possible, users should sanitize the lng and ns inputs before they reach i18next by removing characters such as '..', '/', '\', '?', '#', '%', whitespace, and control characters, and by limiting the length of these inputs. This workaround reduces the risk until the official fix can be deployed.
CVE-2026-41691: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in i18next i18next-http-backend
Description
CVE-2026-41691 is a path traversal and URL injection vulnerability in i18next-http-backend versions prior to 3.0.5. The issue arises because the library interpolates language (lng) and namespace (ns) values directly into URL templates without encoding or sanitization. This allows an attacker controlling these inputs to manipulate the request URL structure, potentially accessing restricted paths. The vulnerability has been fixed in version 3.0.5. Until upgrading, users can mitigate risk by sanitizing lng and ns inputs to remove dangerous characters and limit length.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The i18next-http-backend library versions before 3.0.5 interpolate user-controllable language and namespace parameters directly into URL templates without proper encoding or path sanitization. This improper limitation of pathname allows attackers to inject characters that alter the URL structure, enabling path traversal and broader URL injection attacks. The vulnerability is addressed by the interpolateUrl sanitization fix introduced in version 3.0.5. Users unable to upgrade immediately can mitigate by sanitizing inputs to strip characters such as '..', '/', '\', '?', '#', '%', whitespace, and control characters, and by capping input length.
Potential Impact
An attacker can manipulate the language or namespace parameters to craft URLs that traverse directories or alter URL structure, potentially leading to unauthorized access to resources or unintended backend requests. The CVSS score of 6.5 (medium severity) reflects limited confidentiality and integrity impact without privilege or user interaction requirements. There are no known exploits in the wild at this time.
Mitigation Recommendations
A fixed version 3.0.5 of i18next-http-backend is available and should be applied to remediate this vulnerability. If immediate upgrading is not possible, users should sanitize the lng and ns inputs before they reach i18next by removing characters such as '..', '/', '\', '?', '#', '%', whitespace, and control characters, and by limiting the length of these inputs. This workaround reduces the risk until the official fix can be deployed.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-22T03:53:24.407Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fcf7c7cbff5d86102fe190
Added to database: 05/07/2026, 20:36:23 UTC
Last enriched: 05/15/2026, 11:01:08 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 107
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.