Skip to content
Medium 5.0

Cross-Site Request Forgery (CSRF) in weblate

CVE-2025-66407 First seen on SecPulse

Summary

Vulnerability in weblate (CVE-2025-66407). Risk of unauthorized operations or information disclosure. Mitigation: upgrade to 5.15 or later.

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2025-66407 has been found in weblate.
Risk of unauthorized operations or information disclosure. CVSS score: 5.0/10.
What to do: upgrade weblate to 5.15 or later.
If unsure, ask your IT team or search "weblate CVE-2025-66407" on the vendor's site.

CVE-2025-66407 (weblate) — CWE-352 / CVSS v3 5.0
Attack vector: remote (network-reachable) / no user interaction
Patched: 5.15 — apply immediately
Workaround: Removing Mercurial from VCS_BACKENDS avoids this vulnerability, as the Git backend is not affected.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

CSRF (CWE-352) exists in weblate.

Affected scope

Check the vendor advisory for the affected versions of weblate.

Severity

Severity: Medium (CVSS 5.0/10). Risk of unauthorized operations or information disclosure.

How to fix

Update to 5.15.

Workaround

Workaround: Removing Mercurial from VCS_BACKENDS avoids this vulnerability, as the Git backend is not affected.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'weblate' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'weblate' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で weblate を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply temporary workaroundmitigate
    Removing Mercurial from [VCS_BACKENDS](https://docs.weblate.org/en/latest/admin/config.html#vcs-backends) avoids this vulnerability, as the Git backend is not affected.

    パッチが適用されるまでの応急処置として、Removing Mercurial from VCS_BACKENDS avoids this vulnerability, as the Git backend is not affected. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    Apply patchpatch
    Upgrade weblate to 5.15

    ステージング環境で 5.15 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
PyPIweblate
< 5.15→ 5.15
pipWeblate
< 5.15→ 5.15
Original description The description as published by the source.

Weblate is a web based localization tool. The Create Component functionality in Weblate allows authorized users to add new translation components by specifying both a version control system and a source code repository URL to pull from. However, prior to version 5.15, the repository URL field is not validated or sanitized, allowing an attacker to supply arbitrary protocols, hostnames, and IP addresses, including localhost, internal network addresses, and local filenames. When the Mercurial version control system is selected, Weblate exposes the full server-side HTTP response for the provided URL. This effectively creates a server-side request forgery (SSRF) primitive that can probe internal services and return their contents. In addition to accessing internal HTTP endpoints, the behavior also enables local file enumeration by attempting file:// requests. While file contents may not always be returned, the application’s error messages clearly differentiate between files that exist and files that do not, revealing information about the server’s filesystem layout. In cloud environments, this behavior is particularly dangerous, as internal-only endpoints such as cloud metadata services may be accessible, potentially leading to credential disclosure and full environment compromise. This has been addressed in the Weblate 5.15 release. As a workaround, remove Mercurial from VCS_BACKENDS; the Git backend is not affected. The Git backend was already configured to block the file prot…

Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details