CVE-2026-41654: Weblate Weblate Vulnerable To Authenticated SSRF Vulnerability

MODERATE
Advisory Identifier: GHSA-cwcx-382v-8m9g
CWE-20 CWE-918
Published
Advisory Summary

CVE-2026-41654 is a MODERATE weblate vulnerable to authenticated ssrf vulnerability (CWE-20: Improper Input Validation) affecting Weblate libraries in the PyPI ecosystem. The issue involves weblate vulnerable to authenticated ssrf via project backup import bypassing validate_repo_url. Remediation is available by upgrading affected packages to version 5.17.1.

CVE-2026-41654 at a Glance

CVE Identifier CVE-2026-41654
GHSA Identifier GHSA-cwcx-382v-8m9g
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Weblate
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-41654

To remediate this vulnerability, upgrade all affected Weblate dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

weblate fixed: 5.17.1
pip install weblate>=5.17.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show weblate

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-41654, inspect your installed packages using pip:

pip show weblate

Analyze the terminal output to locate any version of Weblate in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.17.1), your application is affected.

Note: The pip show weblate command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Weblate, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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 * https://github.com/WeblateOrg/weblate/pull/19061 * https://github.com/WeblateOrg/weblate/pull/19062 ### Workarounds Limiting who can create projects limits the scope. ### Resources Weblate thanks @fg0x0 for reporting this vulnerability via GitHub.

CVE-2026-41654 Affected Weblate Versions

1 component(s)
Fixed Versions:
5.17.1
Product / Package Ecosystem Affected Versions Fixed Version
weblate
PyPI
< 5.17.1
5.17.1

References

Frequently Asked Questions

What is CVE-2026-41654?
CVE-2026-41654 is a security vulnerability in Weblate involving Weblate Vulnerable to Authenticated SSRF via Project Backup Import bypassing validate_repo_url under CWE-20: Improper Input Validation.
Which Weblate versions are affected?
Affected versions include releases prior to 5.17.1 across affected packages: weblate.
What version fixes CVE-2026-41654?
Upgrading to 5.17.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is weblate affected?
Yes, weblate is affected in releases prior to 5.17.1. Upgrade your dependency to 5.17.1 or later.
What CWE is associated with CVE-2026-41654?
CVE-2026-41654 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check PyPI dependencies for CVE-2026-41654?
Run the dependency tree command: 'pip show weblate'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cwcx-382v-8m9g",
  "modified" : "2026-05-08T21:47:36Z",
  "published" : "2026-04-30T17:28:41Z",
  "aliases" : [ "CVE-2026-41654" ],
  "summary" : "Weblate Vulnerable to Authenticated SSRF via Project Backup Import bypassing validate_repo_url",
  "details" : "### Impact\nAn 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)`.\n\n### Patches\n* https://github.com/WeblateOrg/weblate/pull/19061\n* https://github.com/WeblateOrg/weblate/pull/19062 \n\n### Workarounds\nLimiting who can create projects limits the scope.\n\n### Resources\nWeblate thanks @fg0x0 for reporting this vulnerability via GitHub.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "weblate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.17.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/WeblateOrg/weblate/security/advisories/GHSA-cwcx-382v-8m9g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-41654"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WeblateOrg/weblate/pull/19061"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WeblateOrg/weblate/pull/19062"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WeblateOrg/weblate/commit/e1eff1f517c1ee315d69581910baaabb724e5ef0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WeblateOrg/weblate/commit/e4b67a76d95d5165ecb9937f7485fd79223b7f14"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/WeblateOrg/weblate"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WeblateOrg/weblate/releases/tag/weblate-5.17.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-30T17:28:41Z",
    "nvd_published_at" : "2026-05-07T15:16:07Z"
  }
}