Advisory

GHSA-ffgh-3jrf-8wvh

Also known as: CVE-2026-40256, PYSEC-2026-2315

Summary

Weblate: Prefix-Based Repository Boundary Check Bypass via Symlink/Junction Path Prefix Collision

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-16 21:08 UTC
Modified
2026-07-13 07:26 UTC

Affected packages and fixes

weblate

PyPI · All systems

Affected

  • introduced 0, fixed 5.17 (ecosystem)

Fixed versions

5.17

Fix

  • Fixed version 5.17
    pip install --upgrade weblate==5.17

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences