Skip to main content

Weblate EUVDEUVD-2025-203462

| CVE-2025-66407 MEDIUM
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-05-26 https://github.com/WeblateOrg/weblate GHSA-hfpv-mc5v-p9mm PYSEC-2025-231
5.0
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege Weblate account with component creation rights
  2. Delivery
    Navigate to Create Component and select Mercurial VCS
  3. Exploit
    Supply crafted internal URL targeting metadata service or internal endpoint
  4. Execution
    Weblate server makes outbound HTTP request
  5. Persist
    Full HTTP response body returned to attacker
  6. Impact
    Extract IAM credentials or map internal service landscape

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must hold an authenticated Weblate account (CVSS PR:L confirmed) with permissions to create translation components - standard translator or reviewer roles without component management access cannot trigger the vulnerability. Mercurial must be installed on the Weblate server and enabled in the VCS_BACKENDS configuration setting; since Mercurial is a separate package not bundled with Weblate by default, its presence indicates a deliberate administrative choice. For cloud metadata credential exfiltration (the highest-impact scenario), the Weblate application server must be running in a cloud environment with reachable instance metadata endpoints and IMDSv1 (token-optional) access enabled - IMDSv2 enforcement on AWS blocks the metadata SSRF path without requiring a Weblate patch. For filesystem enumeration via file://, no additional conditions beyond Mercurial being enabled are needed. Exploitation is limited in scope by the account creation requirement; self-registration must be enabled or the attacker must obtain credentials through other means.

Impact

CVSS 5.0 with vector AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N presents a nuanced picture. The Scope:Changed flag is the critical signal here - confidentiality impact extends beyond Weblate itself to backend infrastructure, cloud control planes, and internal services. Attack complexity is Low and no user interaction is required once the attacker holds a low-privilege account, and SSVC rates the vulnerability as Automatable, meaning an adversary can script the internal enumeration systematically. The raw CVSS score of 5.0 (Medium) arguably understates real-world impact in cloud environments: AWS IMDSv1, GCP metadata, and Azure IMDS endpoints reachable from the Weblate host can yield short-lived IAM credentials leading to full cloud account compromise - an impact far exceeding partial confidentiality. EPSS at 0.02% (6th percentile) and SSVC exploitation status of 'none' indicate no observed exploitation at time of analysis, which is consistent with the requirement for an authenticated account with component-management rights (a non-trivial prerequisite). On-premises deployments with no cloud metadata exposure face meaningfully lower risk. Note: the CWE-352 classification is inconsistent with the described behavior and should be treated as a metadata error - this is SSRF, not CSRF.

Exploit ScenarioDerived

An authenticated Weblate user - such as a project manager or translator with component creation rights - navigates to the Create Component form, selects Mercurial as the VCS type, and enters http://169.254.169.254/latest/meta-data/iam/security-credentials/MyRole as the repository URL. Weblate's application server makes the outbound HTTP request and returns the full JSON response body containing temporary AWS IAM access keys, secret keys, and session tokens, which the attacker reads directly from the error/response output. No public exploit code has been identified at time of analysis, but the attack requires no special tooling beyond a browser and valid Weblate credentials.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

Server-side request forgery in Weblate's Create Component feature allows authenticated users with component creation rights to make the Weblate server issue HTTP requests to arbitrary internal endpoints, including cloud metadata services, by supplying a crafted repository URL when the Mercurial VCS backend is selected. The Mercurial backend uniquely surfaces the full HTTP response body to the requesting user, enabling enumeration of internal services; file:// scheme requests additionally allow filesystem layout inference via error-message oracle behavior. No active exploitation has been confirmed (not in CISA KEV), but cloud-hosted deployments face elevated risk from IAM credential disclosure via instance metadata endpoints.

RemediationAI

Upgrade to Weblate 5.15, the vendor-confirmed fix release, which introduces VCS_ALLOW_SCHEMES (defaulting to https and ssh) and VCS_ALLOW_HOSTS allowlists enforced at the model validation layer. Docker deployments should configure the corresponding WEBLATE_VCS_ALLOW_SCHEMES and WEBLATE_VCS_ALLOW_HOSTS environment variables post-upgrade. Patch pull requests: https://github.com/WeblateOrg/weblate/pull/17102 and https://github.com/WeblateOrg/weblate/pull/17103. If immediate upgrade is not feasible, the vendor-documented workaround is to remove Mercurial from the VCS_BACKENDS configuration setting - this fully eliminates the attack surface because the Git backend is unaffected. Trade-off: removing Mercurial will break any existing translation components currently using the Mercurial backend, requiring migration to Git before applying the workaround. As an additional layer for cloud-hosted instances, enabling IMDSv2 token requirements on AWS EC2 (or equivalent hop-token enforcement on GCP/Azure) will block metadata endpoint access even if SSRF is triggered, reducing the most severe impact scenario.

Affected VersionsENISA

weblate < 5.15

Affected Packages

pypi weblate fix: 5.15

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Weblate is an open-source web-based translation management system distributed as a Python pip package (pkg:pip/weblate). The vulnerability resides in the component creation workflow: the repository URL field accepted arbitrary user-supplied input without scheme or hostname validation. When Mercurial (hg) is the selected VCS backend, Weblate's application server makes an outbound connection to that URL and reflects the HTTP response body back to the user - behavior absent from the Git backend, which had preexisting file:// protocol blocking and does not expose response content on error. The metadata lists CWE-352 (Cross-Site Request Forgery), which appears to be a misclassification; the advisory, researcher disclosure, and tags all identify this as CWE-918 Server-Side Request Forgery (SSRF). The fix, delivered in PRs #17102 and #17103, replaced the permissive VCS_FILE_PROTOCOL boolean with two new allowlist settings - VCS_ALLOW_SCHEMES (defaulting to https and ssh only) and VCS_ALLOW_HOSTS - enforced via a new weblate.utils.validators.validate_repo_url Django field validator applied to the repo and push URL model fields.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.0 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None

DescriptionNVD

Impact

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, 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.

Patches

This has been addressed in the Weblate 5.15 release.

  • https://github.com/WeblateOrg/weblate/pull/17103
  • https://github.com/WeblateOrg/weblate/pull/17102

Workarounds

Removing Mercurial from VCS_BACKENDS avoids this vulnerability, as the Git backend is not affected. The Git backend was already configured to block the file protocol and does not expose the HTTP response content in the error message.

References

Thanks to Jason Marcello for responsible disclosure.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

25
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +25
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy