GitHub Advisoryadvisory · PyPI

GHSA-ffgh-3jrf-8wvh Weblate: Prefix-Based Repository Boundary Check Bypass via Symlink/Junction Path Prefix Collision

MEDIUM Published 2026-04-16 Modified 2026-04-16 Official page ↗
Aliases
CVE-2026-40256
Ecosystem
PyPI
Packages
weblate
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Weaknesses
CWE-22
Reviewed
2026-04-16

Affected packages

• PyPI weblate: < 5.17 → fixed in 5.17

Description

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.

Related

Alias · CVE (1)

  • CVE-2026-40256 Weblate is a web based localization tool. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References