Description
Nocturne Memory is a lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents. Prior to 2.4.1, when API_TOKEN is unset or empty, the BearerTokenAuthMiddleware bypasses authentication for all HTTP requests. Combined with the default 0.0.0.0 host binding and CORS allow_origins=["*"], operators following the Docker setup without explicitly setting API_TOKEN expose the full Knowledge-Graph read/write API to any LAN-reachable client. An attacker on the same network can read, write, or delete all memory entries — including system://boot and core://* URIs that auto-load into downstream agent sessions, enabling persistent prompt-injection. This vulnerability is fixed in 2.4.1.
Published: 2026-05-27
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises when the API_TOKEN environment variable is unset or empty in Nocturne Memory versions prior to 2.4.1. Based on the description, it is inferred that this absence causes the BearerTokenAuthMiddleware to ignore authentication for all HTTP requests, effectively disabling the access control layer. An unauthenticated attacker can exploit this to read, modify, or delete any memory entry exposed by the REST or SSE interface, including critical system and core URIs that are automatically loaded into downstream agent sessions. This enables persistent prompt injection.

Affected Systems

The affected product is Nocturne Memory, a lightweight long‑term memory server for MCP Agents, provided by Dataojitori. Versions earlier than 2.4.1 contain the issue. The server binds by default to 0.0.0.0 and allows all CORS origins, so any LAN‑reachable client can reach the vulnerable interface if API_TOKEN is missing. Given the default binding to 0.0.0.0 and wildcard CORS, a likely attack vector is any LAN‑reachable client.

Risk and Exploitability

The CVSS score of 8.7 reflects the high severity of this authentication bypass. Based on the description, it is inferred that the lack of authentication requirements and the network‑reachable nature of the service facilitate exploitation. Because the vulnerability requires no credential and the service is network accessible, exploitation is straightforward. The likely attack vector is a local network client exploiting the default binding and open CORS settings. The EPSS score is not available, but the absence of mitigations such as a non‑empty token, restricted binding, or CORS limits means an attacker on the same local network can readily exercise the full read/write/delete capability. The vulnerability is not yet listed in the CISA KEV catalog but should be treated as high risk until remediation is applied.

Generated by OpenCVE AI on May 27, 2026 at 21:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Nocturne Memory to version 2.4.1 or later, which fixes the authentication bypass
  • Set a securely generated API_TOKEN environment variable before starting the server
  • Configure the server to bind only to trusted interfaces (e.g., localhost or a private network) and restrict CORS origins to known trusted hosts

Generated by OpenCVE AI on May 27, 2026 at 21:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 29 May 2026 16:00:00 +0000

Type Values Removed Values Added
First Time appeared Dataojitori
Dataojitori nocturne Memory
Vendors & Products Dataojitori
Dataojitori nocturne Memory

Wed, 27 May 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 27 May 2026 15:15:00 +0000

Type Values Removed Values Added
Description Nocturne Memory is a lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents. Prior to 2.4.1, when API_TOKEN is unset or empty, the BearerTokenAuthMiddleware bypasses authentication for all HTTP requests. Combined with the default 0.0.0.0 host binding and CORS allow_origins=["*"], operators following the Docker setup without explicitly setting API_TOKEN expose the full Knowledge-Graph read/write API to any LAN-reachable client. An attacker on the same network can read, write, or delete all memory entries — including system://boot and core://* URIs that auto-load into downstream agent sessions, enabling persistent prompt-injection. This vulnerability is fixed in 2.4.1.
Title Empty API_TOKEN disables authentication on network-reachable HTTP/SSE transport
Weaknesses CWE-306
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Dataojitori Nocturne Memory
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-27T15:33:42.680Z

Reserved: 2026-05-07T21:21:48.351Z

Link: CVE-2026-44830

cve-icon Vulnrichment

Updated: 2026-05-27T15:33:39.910Z

cve-icon NVD

Status : Deferred

Published: 2026-05-27T15:16:28.297

Modified: 2026-06-17T10:51:24.200

Link: CVE-2026-44830

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-29T15:50:44Z

Weaknesses
  • CWE-306

    Missing Authentication for Critical Function