CVE-2026-40256
mediumpriority · track · 0EPSS 0.003 · 25 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-ffgh-3jrf-8wvhWeblate: Prefix-Based Repository Boundary Check Bypass via Symlink/Junction Path Prefix Collision2026-04-16ghsa · osvUS
### 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](https://hackerone.com/m9nx4u) for reporting this issue via HackerOne.
- PYSEC-2026-23152026-04-15vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2026-40256cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2026-40256cnnvd
- https://weblate.org/zh-hans/download/Patchcnnvd
- https://github.com/WeblateOrg/weblate/commit/e30dbcb33ae78e754ecef192d54f996b89cb4e15enisa_euvd
- https://github.com/WeblateOrg/weblate/security/advisories/GHSA-ffgh-3jrf-8wvhenisa_euvd
- https://github.com/WeblateOrg/weblate/commit/e30dbcb33ae78e754ecef192d54f996b89cb4e15Patchnvd
- https://github.com/WeblateOrg/weblate/security/advisories/GHSA-ffgh-3jrf-8wvhPatchVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan