5.0medium
Weblate has Server-Side Request Forgery vulnerability
- Severity
- 5.0medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-hfpv-mc5v-p9mmPYSEC-2025-231
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| WeblateOrg weblate | < 5.15 | CVE List |
| weblate (PyPI) | before 5.15 | GitHub Advisory Database, PyPA Advisory Database |
| weblate weblate | before 5.15 | NVD |
All scores
| GitHub_M | 5.0medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
| GitHub | 5.0medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
| NVD | 5.0medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
| PyPA Advisory Database | 5.0medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
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.
NVD (es)
Weblate es una herramienta de localización basada en web. La funcionalidad 'Crear Componente' en Weblate permite a los usuarios autorizados añadir nuevos componentes de traducción especificando tanto un sistema de control de versiones como una URL de repositorio de código fuente de la que extraer. Sin embargo, antes de la versión 5.15, el campo de la URL del repositorio no está validado ni saneado, lo que permite a un atacante suministrar protocolos, nombres de host y direcciones IP arbitrarios, incluyendo localhost, direcciones de red internas y nombres de archivo locales. Cuando se selecciona el sistema de control de versiones Mercurial, Weblate expone la respuesta HTTP completa del lado del servidor para la URL proporcionada. Esto crea efectivamente una primitiva de falsificación de petición del lado del servidor (SSRF) que puede sondear servicios internos y devolver sus contenidos. Además de acceder a puntos finales HTTP internos, el comportamiento también permite la enumeración de archivos locales al intentar peticiones file: //. Aunque el contenido de los archivos no siempre se devuelva, los mensajes de error de la aplicación diferencian claramente entre los archivos que existen y los que no, revelando información sobre la estructura del sistema de archivos del servidor. En entornos de nube, este comportamiento es particularmente peligroso, ya que los puntos finales solo internos, como los servicios de metadatos de la nube, pueden ser accesibles, lo que podría llevar a la divulgación de credenciales y al compromiso total del entorno. Esto ha sido abordado en la versión 5.15 de Weblate. Como solución alternativa, elimine Mercurial de 'VCS_BACKENDS'; el backend de Git no está afectado. El backend de Git ya estaba configurado para bloquear el protocolo de archivo y no expone el contenido de la respuesta HTTP en el mensaje de error.
References
| https://github.com/WeblateOrg/weblate/security/advisories/GHSA-hfpv-mc5v-p9mm | advisory, vendor-advisory, web | |
| https://github.com/WeblateOrg/weblate/pull/17102 | fix, issue-tracking, patch, web | |
| https://github.com/WeblateOrg/weblate/pull/17103 | fix, issue-tracking, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-66407 | advisory | |
| https://github.com/WeblateOrg/weblate | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/weblate/PYSEC-2025-231.yaml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66407 changed 2025-12-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hfpv-mc5v-p9mm changed 2026-05-26 | CC-BY-4.0 |
| NVD | CVE-2025-66407 changed 2026-10-07 | Public domain |
| PyPA Advisory Database | PYSEC-2025-231 changed 2026-05-20 | CC-BY-4.0 |