CVE-2026-44830
Deferred Deferred - Pending Action
Authentication Bypass in Nocturne Memory Server

Publication date: 2026-05-27

Last updated on: 2026-06-01

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-27
Last Modified
2026-06-01
Generated
2026-06-16
AI Q&A
2026-05-27
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
nocturne_memory nocturne_memory 2.4.1
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-306 The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in Nocturne Memory versions prior to 2.4.1. When the API_TOKEN is unset or empty, the BearerTokenAuthMiddleware fails to enforce authentication, allowing all HTTP requests to bypass authentication.

Because the default configuration binds the service to 0.0.0.0 and allows all CORS origins, any client on the same local network can access the full Knowledge-Graph read/write API without restriction.

An attacker on the same LAN can read, write, or delete all memory entries, including sensitive URIs like system://boot and core://* that automatically load into downstream agent sessions, enabling persistent prompt-injection attacks.

This security issue is fixed in version 2.4.1.

Impact Analysis

If you run a vulnerable version of Nocturne Memory without setting the API_TOKEN, an attacker on your local network can fully access and manipulate your memory entries.

  • They can read sensitive data stored in the memory server.
  • They can write or modify memory entries, potentially injecting malicious prompts.
  • They can delete critical memory entries, disrupting system or agent operations.

Such unauthorized access can lead to persistent prompt-injection attacks that affect downstream agent sessions, compromising the integrity and security of your system.

Mitigation Strategies

To mitigate this vulnerability, ensure that the API_TOKEN environment variable is explicitly set and not empty when running Nocturne Memory.

Additionally, upgrade Nocturne Memory to version 2.4.1 or later, where this issue is fixed.

Avoid using the default host binding of 0.0.0.0 and the permissive CORS setting allow_origins=["*"] without proper authentication, as these settings expose the API to any LAN-reachable client.

Compliance Impact

This vulnerability allows unauthorized access to the full Knowledge-Graph read/write API on the affected system when the API_TOKEN is unset or empty. An attacker on the same network can read, write, or delete all memory entries, including critical system data, which could lead to persistent prompt-injection attacks.

Such unauthorized access and potential data manipulation could lead to violations of common data protection standards and regulations like GDPR and HIPAA, which require strict access controls and protection of sensitive data. The exposure of sensitive memory entries and the ability to alter or delete them without authentication undermines confidentiality, integrity, and availability requirements mandated by these regulations.

Therefore, failure to properly set and enforce API_TOKEN authentication as described in this vulnerability could result in non-compliance with these standards, potentially leading to legal and regulatory consequences.

Detection Guidance

This vulnerability can be detected by checking if the nocturne_memory server is running with the API_TOKEN unset or empty, and if it is bound to 0.0.0.0 with permissive CORS settings allowing all origins. An attacker on the same network can access the Knowledge-Graph API without authentication.

To detect this on your system or network, you can attempt to send HTTP requests to the nocturne_memory API endpoint without an Authorization header and observe if access is granted.

Suggested commands to test this include using curl to send requests without authentication:

  • curl -v http://<server-ip>:<port>/api/knowledge-graph
  • curl -v -X GET http://<server-ip>:<port>/api/knowledge-graph/memory_entries

If these commands return data without requiring an API_TOKEN in the Authorization header, the system is vulnerable.

Additionally, check the server configuration for the presence and value of API_TOKEN, host binding (should not be 0.0.0.0), and CORS settings (should not allow all origins).

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-44830. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart