CVE-2026-40256: Weblate: Prefix-Based Repository Boundary Check Bypass via Symlink/Junction Path Prefix Collision
Impact Weblate 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 repooutside).
Published Apr 16, 2026
Affected packages
weblate
- Ecosystem
- PyPI
- Affected
- < 5.17
- Fixed in
- 5.17
- Check
pip show weblate
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Weblate 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).
Patches
- https://github.com/WeblateOrg/weblate/pull/18847
References
Thanks to m9nx4u for reporting this issue via HackerOne.
Credited to nijel, M9nx.
References
- https://github.com/WeblateOrg/weblate/security/advisories/GHSA-ffgh-3jrf-8wvh
- https://nvd.nist.gov/vuln/detail/CVE-2026-40256
- https://github.com/WeblateOrg/weblate/pull/18847
- https://github.com/WeblateOrg/weblate/commit/e30dbcb33ae78e754ecef192d54f996b89cb4e15
- https://github.com/advisories/GHSA-ffgh-3jrf-8wvh
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-55227
Private Weblate projects vulnerable to observable object existence disclosure via globally scoped object lookups
medium4.3Aug 28, 2026CVE-2026-50127
Weblate SSRF: outbound URL guard misses some private ranges
medium5.9Jul 7, 2026CVE-2026-45106
Weblate: Stored HTML injection in editor search preview
medium4.6May 15, 2026CVE-2026-44263
Weblate Vulnerable to Private Translation Enumeration via Screenshot API
medium4.3May 7, 2026CVE-2026-44264
Weblate vulnerable to XSS via crafted Markdown
medium4.3May 7, 2026CVE-2026-41519
Weblate Doesn't Invalidate API Token on Password Change
medium4.2Apr 30, 2026
