CVE-2026-40256: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in WeblateOrg weblate
CVE-2026-40256 is a path traversal vulnerability in Weblate versions prior to 5. 17. The issue arises because repository-boundary validation uses string prefix checks on absolute paths without proper path-segment awareness, allowing bypass when an external path shares the same prefix as the repository path. This vulnerability has been fixed in Weblate version 5. 17. The CVSS score is 5. 0, indicating a medium severity level.
AI Analysis
Technical Summary
Weblate before version 5.17 performs repository-boundary validation by checking if resolved absolute paths start with the repository root path using a simple string prefix check. This method is not path-segment aware, meaning that an attacker can bypass the check if an external path shares the same string prefix as the repository path (e.g., 'repo' and 'repo_outside'). This improper limitation of pathname to a restricted directory (CWE-22) can lead to unauthorized access to files outside the intended repository boundaries. The vulnerability was addressed and fixed in version 5.17.
Potential Impact
An attacker with at least low privileges (PR:L) can exploit this vulnerability remotely (AV:N) without user interaction (UI:N) to gain read access to files outside the intended repository directory. The impact is limited to confidentiality (C:L) with no integrity or availability impact. The vulnerability can lead to exposure of sensitive information stored outside the repository root.
Mitigation Recommendations
Upgrade Weblate to version 5.17 or later, where this path traversal vulnerability has been fixed. Since the vendor advisory confirms the fix in version 5.17, applying this official update is the recommended remediation. Patch status is confirmed by the vendor's versioning information.
CVE-2026-40256: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in WeblateOrg weblate
Description
CVE-2026-40256 is a path traversal vulnerability in Weblate versions prior to 5. 17. The issue arises because repository-boundary validation uses string prefix checks on absolute paths without proper path-segment awareness, allowing bypass when an external path shares the same prefix as the repository path. This vulnerability has been fixed in Weblate version 5. 17. The CVSS score is 5. 0, indicating a medium severity level.
CVSS v3.1
Score 5.0medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Weblate before version 5.17 performs repository-boundary validation by checking if resolved absolute paths start with the repository root path using a simple string prefix check. This method is not path-segment aware, meaning that an attacker can bypass the check if an external path shares the same string prefix as the repository path (e.g., 'repo' and 'repo_outside'). This improper limitation of pathname to a restricted directory (CWE-22) can lead to unauthorized access to files outside the intended repository boundaries. The vulnerability was addressed and fixed in version 5.17.
Potential Impact
An attacker with at least low privileges (PR:L) can exploit this vulnerability remotely (AV:N) without user interaction (UI:N) to gain read access to files outside the intended repository directory. The impact is limited to confidentiality (C:L) with no integrity or availability impact. The vulnerability can lead to exposure of sensitive information stored outside the repository root.
Mitigation Recommendations
Upgrade Weblate to version 5.17 or later, where this path traversal vulnerability has been fixed. Since the vendor advisory confirms the fix in version 5.17, applying this official update is the recommended remediation. Patch status is confirmed by the vendor's versioning information.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T17:31:45.787Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69dfe0a382d89c981f8dff9e
Added to database: 4/15/2026, 7:01:55 PM
Last enriched: 4/22/2026, 11:11:30 PM
Last updated: 5/31/2026, 5:33:57 AM
Views: 71
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.