CVE-2026-41654
JSON

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 packageVersionsReported by
WeblateOrg weblate< 5.17.1CVE List
weblate (PyPI)before 5.17.1GitHub Advisory Database, PyPA Advisory Database
weblate weblatebefore 5.17.1NVD

All scores

GitHub_M5.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
PyPA Advisory Database8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Classification

CWE-20CWE-918

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2026-41654 changed 2026-05-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-cwcx-382v-8m9g changed 2026-07-13CC-BY-4.0
NVDCVE-2026-41654 changed 2026-10-25Public domain
PyPA Advisory DatabasePYSEC-2026-2317 changed 2026-07-13CC-BY-4.0