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

Published Apr 15, 2026
·
Updated

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).

Patches https://github.com/WeblateOrg/weblate/pull/18847

References Thanks to m9nx4u for reporting this issue via HackerOne.

Other sources

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 repooutside). This issue has been fixed in version 5.17.

NVD

Affected Software

3 affected componentsFixes available
pypi/weblate<5.17
pip/weblate<5.17
5.17
Weblate weblate<5.17

Event History

Apr 15, 2026
CVE Published
via MITRE·06:36 PM
Data Sourced
via MITRE·06:36 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
RemedyAffected Software
Apr 16, 2026
Advisory Published
via GitHub·09:08 PM
Data Sourced
via GitHub·09:08 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40256?

CVE-2026-40256 has a medium severity level due to its potential for bypassing repository boundary checks.

2

How do I fix CVE-2026-40256?

To fix CVE-2026-40256, upgrade Weblate to version 5.17 or later.

3

What types of systems are affected by CVE-2026-40256?

CVE-2026-40256 affects Weblate installations up to version 5.17.

4

What kind of attack vector does CVE-2026-40256 present?

CVE-2026-40256 presents a path prefix collision vulnerability that can allow unauthorized repository access.

5

Is CVE-2026-40256 specific to any operating system?

CVE-2026-40256 is not limited to a specific operating system but affects all deployments of the vulnerable Weblate versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203