CVE-2026-41654: 
Python vulnerability analysis and mitigation

Overview

CVE-2026-41654 is an authenticated Server-Side Request Forgery (SSRF) vulnerability in Weblate, the open-source translation management platform, affecting all versions prior to 5.17.1. An authenticated user with project.add permission — granted by default on hosted Weblate SaaS and to any user with an active billing or trial plan — can import a crafted project backup ZIP containing a malicious repo URL that bypasses URL validation, enabling SSRF against internal network resources. The vulnerability was reported by researcher @fg0x0, disclosed on April 30, 2026, and patched in Weblate 5.17.1. It carries a CVSS v3.1 base score of 8.1 (High) and a CVSS v4.0 base score of 5.3 (Medium) (GitHub Advisory).

Technical details

The root cause is improper input validation (CWE-20) combined with SSRF (CWE-918). When restoring a project backup, Weblate persists component data using Django's Component.objects.bulk_create([component])[0], which bypasses Django's full_clean() lifecycle method and therefore never invokes the validate_repo_url validator. The attacker-controlled repo field from components/<name>.json inside the ZIP is written verbatim into .git/config by configure_repo(pull=False), allowing URLs pointing to private/loopback addresses (e.g., http://127.0.0.1:9999/) or non-allow-listed schemes (e.g., file://, git://) to be used for subsequent VCS operations. The fix, implemented in PRs #19061 and #19062, adds explicit validate_repo_url checks during backup validation and introduces a remote_op annotation to Repository.execute() to make remote URL validation explicit and non-opt-in (GitHub Advisory, Patch PR #19061, Patch PR #19062).

Impact

Successful exploitation allows an authenticated attacker to cause the Weblate server to initiate outbound connections to arbitrary internal or external addresses, enabling reconnaissance of internal network services, potential access to cloud metadata endpoints (e.g., http://169.254.169.254/), and interaction with services not intended to be publicly accessible. The use of file:// or git:// schemes could additionally expose local file system contents or interact with local Git repositories. Confidentiality and integrity impacts are rated High under CVSS v3.1, with no direct availability impact (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported as of the time of disclosure. The EPSS score is approximately 0.093% (7th percentile), indicating a low near-term exploitation probability. The vulnerability requires a low-privilege authenticated account with project.add permission, which is the default for any SaaS user with an active billing or trial plan, making the attacker prerequisite relatively easy to satisfy. It is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and no threat actor attribution has been identified (GitHub Advisory).

Exploitation steps

  1. Obtain access: Register or log in to a Weblate instance (including hosted SaaS) with an account that has project.add permission — available by default to any user with an active billing or trial plan.
  2. Create a malicious backup ZIP: Generate or obtain a legitimate Weblate project backup ZIP, then modify the components/<name>.json file within it to set the repo field to a target internal URL (e.g., http://127.0.0.1:9999/, http://169.254.169.254/latest/meta-data/, or file:///etc/passwd).
  3. Import the crafted backup: Use the Weblate project backup import feature to upload the tampered ZIP file.
  4. Trigger SSRF: Weblate processes the backup, persisting the component via Component.objects.bulk_create() without invoking validate_repo_url, and writes the malicious URL into .git/config via configure_repo(pull=False).
  5. Observe server-side requests: When Weblate subsequently performs VCS operations (e.g., repository fetch/pull), it contacts the attacker-specified URL, potentially returning internal service responses or file contents that can be observed through error messages or side channels (GitHub Advisory, Patch PR #19061).

Indicators of compromise

  • Network: Unexpected outbound connections from the Weblate server to internal IP ranges (RFC 1918: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback addresses (127.0.0.1), or cloud metadata endpoints (169.254.169.254); connections using non-standard schemes (git://, file://) originating from the Weblate process.
  • File System: Presence of .git/config files within Weblate component directories containing url = entries pointing to private/internal addresses or using file:// or git:// schemes; recently imported project backup ZIP files with tampered components/*.json entries.
  • Logs: Weblate application logs showing VCS errors or connection attempts to internal/loopback addresses; Django error logs referencing configure_repo failures against unexpected hosts; web server access logs showing project backup import requests (POST to backup restore endpoints) from unexpected users or at unusual times.

Mitigation and workarounds

Upgrade Weblate to version 5.17.1 or later, which adds validate_repo_url checks during project backup validation (PR #19061) and makes remote URL validation explicit across all VCS operations (PR #19062). As a temporary workaround, restrict the project.add permission to trusted users only, limiting who can import project backups. On hosted Weblate SaaS, the vendor has applied the patch; self-hosted deployments should prioritize upgrading immediately (GitHub Advisory, Patch PR #19061).

Community reactions

The vulnerability was reported to Weblate by researcher @fg0x0 via GitHub and was acknowledged and patched by Weblate maintainer nijel on April 17, 2026, ahead of the public advisory on April 30, 2026. The NixOS security tracker opened a tracking issue (NixOS/nixpkgs#518343) referencing the fix PRs. No significant broader media coverage or notable public researcher commentary beyond the GitHub advisory and standard CVE aggregator coverage has been observed (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-rh2h-69fp-q55vHIGH7
  • Python logoPython
  • virtualenv
NoYesNov 21, 2026
GHSA-vmhf-2rcw-c624MEDIUM4.5
  • Python logoPython
  • virtualenv
NoYesNov 21, 2026
GHSA-7c26-x6xg-6f39LOW3.6
  • Python logoPython
  • virtualenv
NoNoNov 21, 2026
GHSA-vg73-7844-8q8gLOW3.3
  • Python logoPython
  • virtualenv
NoYesNov 21, 2026
GHSA-rq56-gqmj-pggpLOW3.3
  • Python logoPython
  • virtualenv
NoYesNov 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management