🛡️ CVE-2026-40256 — weblate

🟡 CVSS 5.0 — Medium ✅ No Known Exploit CWE-22 OSV
5.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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

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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity none, availability none.

Weakness class

CVE-2026-40256 is classified as CWE-22: Path Traversal. A file path built from user input is not confined to the intended directory, letting an attacker reach files elsewhere on the filesystem.

Affected software

CVE-2026-40256 is recorded against 1 package.

  • weblate (fixed in 5.17)

Timeline and source

Published on 16 April 2026 and last revised on 13 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Package)

Details

Severity MEDIUM
CVSS Score 5.0
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
CWE CWE-22
Public Exploit ✅ No
Source OSV
Published 2026-04-16
Updated 2026-08-12
Modified 2026-07-13

Affected Packages

Software From version Fixed in
weblate 5.17

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in weblate

CVE-2026-40256 is rated CVSS 5.0 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.