CVE-2025-32021: Weblate VCS Credentials Included Vulnerability

LOW
Advisory Identifier: GHSA-m67m-3p5g-cw9j
CVSS 2.2
CWE-598
Published
Advisory Summary

CVE-2025-32021 is a LOW (CVSS 2.2) vcs credentials included vulnerability (CWE-598: Use of HTTP Request With Sensitive Query String) affecting Weblate libraries in the PyPI ecosystem. The issue involves vcs credentials included in url parameters are potentially logged and saved into browser history as plaintext. Remediation is available by upgrading affected packages to version 5.11.

CVE-2025-32021 at a Glance

CVE Identifier CVE-2025-32021
GHSA Identifier GHSA-m67m-3p5g-cw9j
Severity LOW
CVSS v3.1 Base Score 2.2
CWE Classification CWE-598: Use of HTTP Request With Sensitive Query String
Affected Product Weblate
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 2.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-32021

To remediate this vulnerability, upgrade all affected Weblate dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

weblate fixed: 5.11
pip install weblate>=5.11
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show weblate

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-32021, inspect your installed packages using pip:

pip show weblate

Analyze the terminal output to locate any version of Weblate in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.11), your application is affected.

Note: The pip show weblate command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-598: Use of HTTP Request With Sensitive Query String, where the web application uses an http method to process a request, but the request includes sensitive information in the query string. In Weblate, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary When creating a new component from an existing component that has a source code repository URL specified in settings, this URL is included in the client's URL parameters during the creation process. If, for example, the source code repository URL contains GitHub credentials, the confidential PAT and username are shown in plaintext and get saved into browser history. Moreover, if the request URL is logged, the credentials are written to the logs in plaintext. The problematic URL in question is of this form: ``` https://<HOST>/create/component/vcs/?repo=https%3A%2F%2F<GITHUB USERNAME>%3A<GITHUB PAT>%40github.com%2F<REPOSITORY OWNER>%2F<REPOSITORY NAME>.git&project=1&category=&name=<REDACTED>&slug=<REDACTED>&is_glossary=False&vcs=github&source_language=228&license=&source_component=1#existing ``` If using Weblate official Docker image, nginx logs the URL and the token in plaintext: ``` nginx stdout | 127.0.0.1 - - [04/Apr/2025:10:46:54 +0000] "GET /create/component/vcs/?repo=https%3A%2F%2F<GITHUB USERNAME>%3A<GITHUB PAT>%40github.com%2F<REPOSITORY OWNER>%2F<REPOSITORY NAME>.git&project=1&category=&name=<REDACTED>&slug=<REDACTED>&is_glossary=False&vcs=github&source_language=228&license=&source_component=1 HTTP/1.1" 200 17625 "<REDACTED>" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0" ``` ### Reproduction 1. In a project, create a component which has the _Repository push URL_ setting configured with, for example, a GitHub repository URL including a username and a PAT. 2. In the same project, create another component using the _From existing component_ option and selecting the previous component as the source. Click _Continue_. 3. Observe that the URL parameter `repo` includes the secret PAT configured in the original components settings. The URL with the token is potentially saved as plaintext in browser history and server logs. 4. Select a translation file to import and click _Continue_. 5. Observe again the same `repo` parameter in the URL. ### Impact - If server logs are compromised, the attacker may be able to gain access to private repositories potentially containing sensitive source code. - Under common browser settings, the URL containing VCS credentials is saved into browser history. Browser extensions, for example, are often able to read the history and thus offer a realistic attack vector to gain access to the credentials.

CVE-2025-32021 Affected Weblate Versions

1 component(s)
Fixed Versions:
5.11
Product / Package Ecosystem Affected Versions Fixed Version
weblate
PyPI
< 5.11
5.11

References

Frequently Asked Questions

What is CVE-2025-32021?
CVE-2025-32021 is a security vulnerability in Weblate involving VCS credentials included in URL parameters are potentially logged and saved into browser history as plaintext under CWE-598: Use of HTTP Request With Sensitive Query String.
Which Weblate versions are affected?
Affected versions include releases prior to 5.11 across affected packages: weblate.
What version fixes CVE-2025-32021?
Upgrading to 5.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is weblate affected?
Yes, weblate is affected in releases prior to 5.11. Upgrade your dependency to 5.11 or later.
What is the CVSS score of CVE-2025-32021?
CVE-2025-32021 has a CVSS v3.1 base score of 2.2 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2025-32021?
CVE-2025-32021 is classified under CWE-598: Use of HTTP Request With Sensitive Query String (The web application uses an HTTP method to process a request, but the request includes sensitive information in the query string.).
How can I check PyPI dependencies for CVE-2025-32021?
Run the dependency tree command: 'pip show weblate'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m67m-3p5g-cw9j",
  "modified" : "2025-04-15T21:42:20Z",
  "published" : "2025-04-15T14:20:38Z",
  "aliases" : [ "CVE-2025-32021" ],
  "summary" : "VCS credentials included in URL parameters are potentially logged and saved into browser history as plaintext",
  "details" : "### Summary\n\nWhen creating a new component from an existing component that has a source code repository URL specified in settings, this URL is included in the client's URL parameters during the creation process. If, for example, the source code repository URL contains GitHub credentials, the confidential PAT and username are shown in plaintext and get saved into browser history. Moreover, if the request URL is logged, the credentials are written to the logs in plaintext.\n\nThe problematic URL in question is of this form:\n\n```\nhttps://<HOST>/create/component/vcs/?repo=https%3A%2F%2F<GITHUB USERNAME>%3A<GITHUB PAT>%40github.com%2F<REPOSITORY OWNER>%2F<REPOSITORY NAME>.git&project=1&category=&name=<REDACTED>&slug=<REDACTED>&is_glossary=False&vcs=github&source_language=228&license=&source_component=1#existing\n```\n\nIf using Weblate official Docker image, nginx logs the URL and the token in plaintext:\n\n```\nnginx stdout | 127.0.0.1 - - [04/Apr/2025:10:46:54 +0000] \"GET /create/component/vcs/?repo=https%3A%2F%2F<GITHUB USERNAME>%3A<GITHUB PAT>%40github.com%2F<REPOSITORY OWNER>%2F<REPOSITORY NAME>.git&project=1&category=&name=<REDACTED>&slug=<REDACTED>&is_glossary=False&vcs=github&source_language=228&license=&source_component=1 HTTP/1.1\" 200 17625 \"<REDACTED>\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0\"\n```\n\n### Reproduction\n\n1. In a project, create a component which has the _Repository push URL_ setting configured with, for example, a GitHub repository URL including a username and a PAT.\n2. In the same project, create another component using the _From existing component_ option and selecting the previous component as the source. Click _Continue_.\n3. Observe that the URL parameter `repo` includes the secret PAT configured in the original components settings. The URL with the token is potentially saved as plaintext in browser history and server logs.\n4. Select a translation file to import and click _Continue_.\n5. Observe again the same `repo` parameter in the URL.\n\n### Impact\n\n- If server logs are compromised, the attacker may be able to gain access to private repositories potentially containing sensitive source code.\n- Under common browser settings, the URL containing VCS credentials is saved into browser history. Browser extensions, for example, are often able to read the history and thus offer a realistic attack vector to gain access to the credentials.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "weblate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/WeblateOrg/weblate/security/advisories/GHSA-m67m-3p5g-cw9j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-32021"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/WeblateOrg/weblate"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WeblateOrg/weblate/releases/tag/weblate-5.11"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-598" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-15T14:20:38Z",
    "nvd_published_at" : "2025-04-15T21:16:04Z"
  }
}