CVE-2026-40256
MEDIUM 5.0CVSS 3.1Weblate: Prefix-Based Repository Boundary Check Bypass via Symlink/Junction Path Prefix Collision
Weblate is a web based localization tool. In versions prior to 5.17, repository-boundary validation relies on string prefix checks on resolved absolute paths. In multiple code paths, the check uses startswith against the repository root path. This is not path-segment aware and can be bypassed when the external path shares the same string prefix as the repository path (for example, repo and repo_outside). This issue has been fixed in version 5.17.
- Published
- 15 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-ffgh-3jrf-8wvhPYSEC-2026-2315
- Sources
- NVDJSONOSV GHSA-ffgh-3jrf-8wvhJSONOSV PYSEC-2026-2315JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | weblate | weblatecpe:2.3:a:weblate:weblate:*:*:*:*:*:*:*:* |
< 5.17 | 5.17 |
| OSV | PyPI | weblate | < 5.17 | 5.17 |
References
- https://github.com/WeblateOrg/weblate/commit/e30dbcb33ae78e754ecef192d54f996b89cb4e15 · Patch, WEB, FIX
- https://github.com/WeblateOrg/weblate/security/advisories/GHSA-ffgh-3jrf-8wvh · Patch, Vendor Advisory, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2026-40256 · ADVISORY
- https://github.com/WeblateOrg/weblate/pull/18847 · WEB
- https://github.com/WeblateOrg/weblate · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 15 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Apr 2026)