Summary
Logseq's Local HTTP API has a missing-authentication vulnerability in its authentication-token validation path. A remote attacker may be able to access the affected API without valid authentication when the service is reachable.
Affected context
The issue is reported in Logseq 2.0.1 and 2.0.2, in validate-auth-token in src/electron/electron/server.cljs, which is part of the Local HTTP API. Risk depends on whether the API is reachable by untrusted users and whether the affected authentication path is exposed in a deployment.
Exploit preconditions
- Attack surface: The Logseq Local HTTP API must be reachable over a network from the attacker's location.
- Required access: The reported issue may allow access without valid authentication.
- Trigger point: A request reaches an API path that relies on
validate-auth-token. - Why exploitation is possible: Authentication may not be correctly enforced on the affected path. Public exploit information has been reported, increasing the importance of reviewing exposure.
Why this happens
The issue is an authentication enforcement failure: the affected API path does not reliably require valid authentication. This aligns primarily with CWE-306: Missing Authentication for Critical Function; it is also related to CWE-287: Improper Authentication, which covers failures to correctly verify identity.
Potential impact
- An attacker may access API functionality intended for authenticated users.
- Depending on the API's capabilities and the data available, unauthorized requests could expose or alter information.
- A reachable API could provide a foothold for further activity within the affected environment.
General mitigation guidance
Defensive approaches focus on enforcing authentication consistently at the API boundary and limiting exposure:
- Require authentication for every sensitive route and operation, using a centralized, fail-closed authorization mechanism.
- Treat missing, invalid, or unverifiable credentials as unauthenticated.
- Bind the API to trusted interfaces or restrict access through network controls when remote access is not necessary.
- Apply least privilege to API capabilities and avoid exposing sensitive operations by default.
- Review authorization behavior across routes and ensure security checks occur before protected actions.
How teams detect issues like this
Review the authentication-token validation path and all routes that depend on it, looking for code paths that proceed when credentials are absent or invalid. Use static analysis and code review to check that protected handlers have explicit, fail-closed authentication checks. At the deployment level, inventory network exposure and monitor for requests to the Local HTTP API that lack valid authentication; automated security review tools can help flag inconsistent enforcement.

