{"id":"CVE-2026-40256","published":"2026-04-15T18:36:44Z","modified":"2026-04-16T14:11:15Z","title":"Weblate: Prefix-Based Repository Boundary Check Bypass via Symlink/Junction Path Prefix Collision","vendor":"WeblateOrg","product":"weblate","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00337,"percentile":0.27763,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/WeblateOrg/weblate/security/advisories/GHSA-ffgh-3jrf-8wvh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/WeblateOrg/weblate/commit/e30dbcb33ae78e754ecef192d54f996b89cb4e15","tags":["x_refsource_MISC"]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":5.55},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"weblateorg","affectedVersions":[{"vendor":"WeblateOrg","product":"weblate","versions":["< 5.17"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-16T14:10:48.501718Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"weblate","vulnerableRanges":["<5.17"],"patched":["5.17"],"from":["GHSA-ffgh-3jrf-8wvh","PYSEC-2026-2315"],"provenance":"source"}],"summary":{"text":"Weblate, a web-based localization tool, contains a repository-boundary check that validates resolved paths using a string prefix comparison rather than path-segment-aware logic, in multiple code paths. An authenticated low-privilege user over the network can exploit this without user interaction by supplying an external path that shares a string prefix with the repository root (such as \"repo_outside\" against \"repo\"), bypassing the boundary check and reaching paths outside the intended repository.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:32Z"},"euvd":{"id":"EUVD-2026-23019","exploited":false,"provenance":"source"}}