Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-66407: CWE-352: Cross-Site Request Forgery (CSRF) in WeblateOrg weblate

0
Medium
VulnerabilityCVE-2025-66407cvecve-2025-66407cwe-352
Published: Mon Dec 15 2025 (12/15/2025, 23:36:25 UTC)
Source: CVE Database V5
Vendor/Project: WeblateOrg
Product: weblate

Description

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 protocol and does not expose the HTTP response content in the error message.

AI-Powered Analysis

AILast updated: 12/16/2025, 00:02:55 UTC

Technical Analysis

Weblate is a web-based localization platform that supports multiple version control systems (VCS) for managing translation components. In versions prior to 5.15, the Create Component feature allows authorized users to add new translation components by specifying a repository URL and VCS type. When Mercurial is selected as the VCS, the application fails to validate or sanitize the repository URL input, permitting attackers to supply arbitrary URLs with various protocols, including HTTP, file, and others. This lack of validation enables a server-side request forgery (SSRF) primitive, where the Weblate server makes HTTP requests to attacker-controlled or internal network resources and returns the full HTTP response content to the user. Additionally, attempts to access local files via file:// URLs can reveal the presence or absence of files on the server through distinct error messages, effectively enabling local file enumeration. In cloud deployments, this SSRF can be leveraged to access sensitive internal endpoints such as cloud metadata services, which often contain credentials and tokens, potentially leading to full environment compromise. The vulnerability is classified under CWE-352 (Cross-Site Request Forgery), but the core issue is SSRF due to unsanitized URL input. The Git backend is unaffected because it blocks file protocol URLs and does not expose HTTP response content in error messages. The issue was resolved in Weblate 5.15 by implementing proper validation and sanitization of repository URLs. As a temporary workaround, administrators can remove Mercurial from the VCS_BACKENDS configuration to prevent exploitation. The CVSS v3.1 score is 5.0 (medium), reflecting network attack vector, low complexity, requiring privileges but no user interaction, with limited confidentiality impact and no integrity or availability impact. No known exploits have been reported in the wild.

Potential Impact

For European organizations using Weblate versions prior to 5.15, this vulnerability poses a significant risk, especially for those deploying Weblate in cloud environments or with sensitive internal network resources. Attackers with authorized access can exploit the SSRF to probe internal services, potentially accessing internal APIs, cloud metadata endpoints, or other sensitive infrastructure components that are not exposed externally. This can lead to credential disclosure, unauthorized access to internal systems, and potentially full compromise of the hosting environment. The ability to enumerate local files can also aid attackers in mapping the server filesystem, facilitating further targeted attacks. Organizations relying on Mercurial as their VCS backend are particularly vulnerable, while those using Git are not affected. The medium severity rating indicates a moderate risk, but the potential for cloud metadata service access elevates the threat in cloud-hosted deployments. This vulnerability could disrupt localization workflows and compromise the confidentiality of internal resources, impacting compliance with data protection regulations such as GDPR if sensitive data is exposed.

Mitigation Recommendations

European organizations should prioritize upgrading Weblate to version 5.15 or later, where the vulnerability is fully addressed through proper input validation and sanitization. If immediate upgrade is not feasible, administrators should remove Mercurial from the VCS_BACKENDS configuration to disable the vulnerable backend, effectively mitigating the SSRF risk. Additionally, organizations should audit and restrict access to the Weblate administrative interface to trusted users only, minimizing the risk of exploitation by unauthorized actors. Network segmentation and firewall rules should be enforced to limit the Weblate server's ability to access internal services and cloud metadata endpoints. Monitoring and logging of Weblate server requests can help detect suspicious SSRF attempts. Finally, organizations should review their cloud environment's metadata service access policies, such as enabling metadata service version 2 (IMDSv2) in AWS, to reduce the risk of credential exposure via SSRF.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2025-11-28T23:33:56.365Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69409d9cd9bcdf3f3d09c710

Added to database: 12/15/2025, 11:45:32 PM

Last enriched: 12/16/2025, 12:02:55 AM

Last updated: 12/18/2025, 12:22:27 PM

Views: 15

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats