5.3medium
Weblate is Vulnerable to Authenticated SSRF via Project Backup Import bypassing validate_repo_url
- Severity
- 5.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.37% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-cwcx-382v-8m9gPYSEC-2026-2317
Description
Weblate is a web based localization tool. Prior to version 5.17.1, an authenticated user with project.add permission (default on hosted Weblate SaaS and for any user holding an active billing/trial plan) can import a crafted project backup ZIP whose components/<name>.json contains an attacker-chosen repo URL pointing at a private address (e.g. http://127.0.0.1:9999/) or using a non-allow-listed scheme (e.g. file://, git://). Weblate persists the component via Component.objects.bulk_create([component])[0], which bypasses Django's full_clean() and therefore never runs the validate_repo_url validator. The URL is subsequently written verbatim into .git/config by configure_repo(pull=False). This issue has been patched in version 5.17.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| WeblateOrg weblate | < 5.17.1 | CVE List |
| weblate (PyPI) | before 5.17.1 | GitHub Advisory Database, PyPA Advisory Database |
| weblate weblate | before 5.17.1 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| PyPA Advisory Database | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Classification
What each source says
CVE List
Weblate is a web based localization tool. Prior to version 5.17.1, an authenticated user with project.add permission (default on hosted Weblate SaaS and for any user holding an active billing/trial plan) can import a crafted project backup ZIP whose components/<name>.json contains an attacker-chosen repo URL pointing at a private address (e.g. http://127.0.0.1:9999/) or using a non-allow-listed scheme (e.g. file://, git://). Weblate persists the component via Component.objects.bulk_create([component])[0], which bypasses Django's full_clean() and therefore never runs the validate_repo_url validator. The URL is subsequently written verbatim into .git/config by configure_repo(pull=False). This issue has been patched in version 5.17.1.
GitHub Advisory Database
Impact
An authenticated user with project.add permission (default on hosted Weblate SaaS and for any user holding an active billing/trial plan) can import a crafted project backup ZIP whose components/<name>.json contains an attacker-chosen repo URL pointing at a private address (e.g. http://127.0.0.1:9999/) or using a non-allow-listed scheme (e.g. file://, git://). Weblate persists the component via Component.objects.bulk_create([component])[0], which bypasses Django's full_clean() and therefore never runs the validate_repo_url validator. The URL is subsequently written verbatim into .git/config by configure_repo(pull=False).
Patches
Workarounds
Limiting who can create projects limits the scope.
Resources
Weblate thanks @fg0x0 for reporting this vulnerability via GitHub.
NVD (es)
Weblate es una herramienta de localización basada en web. Antes de la versión 5.17.1, un usuario autenticado con permiso project.add (por defecto en Weblate SaaS alojado y para cualquier usuario con un plan de facturación/prueba activo) puede importar un ZIP de copia de seguridad de proyecto manipulado cuyo components/[name].json contiene una URL de repositorio elegida por el atacante que apunta a una dirección privada (por ejemplo, http://127.0.0.1:9999/) o que utiliza un esquema no permitido (por ejemplo, file: //, git://). Weblate persiste el componente a través de Component.objects.bulk_create([component])[0], lo que omite el full_clean() de Django y por lo tanto nunca ejecuta el validador validate_repo_url. La URL se escribe posteriormente textualmente en .git/config por configure_repo(pull=False). Este problema ha sido parcheado en la versión 5.17.1.
References
| https://github.com/WeblateOrg/weblate/security/advisories/GHSA-cwcx-382v-8m9g | fix, patch, vendor-advisory, web | |
| https://github.com/WeblateOrg/weblate/pull/19061 | fix, issue-tracking, patch, web | |
| https://github.com/WeblateOrg/weblate/pull/19062 | fix, issue-tracking, patch, web | |
| https://github.com/WeblateOrg/weblate/commit/e1eff1f517c1ee315d69581910baaabb724e5ef0 | fix, patch, web | |
| https://github.com/WeblateOrg/weblate/commit/e4b67a76d95d5165ecb9937f7485fd79223b7f14 | fix, patch, web | |
| https://github.com/WeblateOrg/weblate/releases/tag/weblate-5.17.1 | advisory, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-41654 | advisory | |
| https://github.com/WeblateOrg/weblate | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-41654 changed 2026-05-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cwcx-382v-8m9g changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2026-41654 changed 2026-10-25 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2317 changed 2026-07-13 | CC-BY-4.0 |