# CVE-2025-58352: PYSEC-2026-2036 - Weblate has a long session expiry when verifying second factor

Source: https://junglewise.ai/threats/cve-2025-58352-weblate-weak-session-expiry-during-second-factor-verification  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2025-58352 · Severity: medium · CVSS 4 · Published 2026-07-07

Weblate is a collaborative translation management platform. During the two-factor authentication verification process, Weblate maintains user sessions with an excessively long expiry time. This weakness allows attackers to bypass rate limiting protections on second factor attempts, potentially enabling brute-force attacks to compromise accounts that have two-factor authentication enabled.

Technologies: [weblate (PyPI)](https://junglewise.ai/threats/technologies/weblate). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-58352 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-58352 being exploited in the wild.

**How severe is CVE-2025-58352?** Medium severity, with a CVSS score of 4, published 7 July 2026.

**Which products and versions are affected?** weblate (PyPI) ECOSYSTEM:introduced=0,fixed=5.13.1.

**Is there a fix for CVE-2025-58352?** Yes. weblate (PyPI): upgrade to 5.13.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-58352 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2025-58352?** Check whether you run weblate (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- weblate (PyPI): upgrade to 5.13.1 or later

  ```sh
  pip install "weblate>=5.13.1"
  ```


## Technical details

The vulnerability stems from improper session management during the second factor verification flow (CWE-613). When a user initiates two-factor authentication, the session timeout is set to an overly long duration, which attackers can exploit to circumvent rate limiting protections on authentication attempts. The attack vector is network-based and requires initial authentication (low privilege) plus user interaction (passive). An attacker can leverage this to perform brute-force attacks against two-factor codes without being rate-limited. The vulnerability affects Weblate versions prior to 5.13.1, which addressed the issue via pull request #16002 by reducing the session expiry time during second factor verification.

## Affected products

- Weblate Weblate all versions before 5.13.1

## Identifiers

- CVE-2025-58352
- GHSA-377j-wj38-4728
- PYSEC-2026-2036

## Timeline

- 2025-09-04: disclosed: Advisory published
- 2025-09-04: patched: Fixed in version 5.13.1

## References

- [https://github.com/WeblateOrg/weblate/security/advisories/GHSA-377j-wj38-4728](https://github.com/WeblateOrg/weblate/security/advisories/GHSA-377j-wj38-4728)

## Related threats

- [Weblate IDOR in GroupViewSet authorization bypass](https://junglewise.ai/threats/cve-2026-55228-weblate-idor-in-groupviewset-authorization-bypass)
- [Weblate observable object existence disclosure via HTTP status codes](https://junglewise.ai/threats/cve-2026-55227-weblate-observable-object-existence-disclosure-via-http-status)
- [PYSEC-2026-2037 - Weblate leaks information via screenshots](https://junglewise.ai/threats/cve-2026-21889-weblate-information-disclosure-via-unprotected-screenshots)
- [PYSEC-2026-2040 - Weblate has an arbitrary file read via symbolic links](https://junglewise.ai/threats/cve-2025-68279-weblate-has-an-arbitrary-file-read-via-symbolic-links)
- [PYSEC-2026-2038 - Weblate exposes personal IP address via e-mail](https://junglewise.ai/threats/cve-2025-49134-weblate-exposes-personal-ip-address-via-e-mail)
