Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111707 Overview
CVE-2026-111707 is an insecure direct object reference (IDOR) vulnerability [CWE-639] affecting 99AI through version 4.3.0. The flaw resides in the querySingleChat function within the chat log service, which fails to verify ownership before returning chat message content. Unauthenticated attackers can send a fingerprint header to the application to obtain a visitor JSON Web Token (JWT), then iterate sequential chatId values against the API to extract other users' private chat messages and task data.
Critical Impact
Unauthenticated attackers can enumerate sequential chat identifiers to disclose private conversations and task data belonging to other users of a 99AI instance.
Affected Products
- 99AI versions up to and including 4.3.0
- Component: service/src/modules/chatLog/chatLog.service.ts (querySingleChat)
- Authentication layer: service/src/common/auth/jwtAuth.guard.ts
Discovery Timeline
- 2026-10-16 - CVE-2026-111707 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-111707
Vulnerability Analysis
The vulnerability exists in the chat log module of 99AI, an open-source AI chat application maintained in the vastxie/99AI GitHub repository. The querySingleChat service method accepts a chatId parameter and returns the associated message record without validating that the requesting principal owns the record. The authentication guard accepts a visitor JWT issued to any client that supplies a fingerprint header, lowering the barrier to exploitation to a single unauthenticated HTTP request. Because chatId values are assigned sequentially, an attacker can enumerate the identifier space and harvest arbitrary chat history. Impact is limited to confidentiality of chat content and task data; integrity and availability are not affected.
Root Cause
The root cause is a missing authorization check inside the querySingleChat handler. The function dereferences the user-supplied chatId directly against the database without comparing the record's owner identifier to the authenticated subject carried in the JWT. This is a textbook case of CWE-639: Authorization Bypass Through User-Controlled Key.
Attack Vector
The attack is executed remotely over the network with no privileges and no user interaction. An attacker performs the following steps:
- Sends an HTTP request containing a fingerprint header to the application, which causes the server to mint and return a visitor JWT.
- Attaches the visitor JWT to subsequent API calls targeting the chat log endpoint.
- Iterates integer chatId values and collects the response bodies containing third-party messages and task data.
Technical write-ups are available in the HackMD Chat Log IDOR Analysis and the VulnCheck Advisory for IDOR. The vulnerable code is referenced in the GitHub Chat Log Service Code.
Detection Methods for CVE-2026-111707
Indicators of Compromise
- Bursts of requests to the chat log API endpoint containing sequential or incrementing chatId values from a single source address or JWT subject.
- Multiple JWT issuance events tied to distinct fingerprint header values from the same client IP address within a short interval.
- Anomalous volumes of successful responses from querySingleChat returning data for users who never initiated the session.
Detection Strategies
- Instrument the chat log endpoint to log the authenticated subject alongside the owner of the returned record, and alert when they diverge.
- Baseline normal access patterns for the chat log API and flag sessions that enumerate large numbers of distinct chatId values.
- Correlate visitor JWT issuance with downstream data access volume to identify scraping behavior from unauthenticated sessions.
Monitoring Recommendations
- Forward web server, reverse proxy, and application logs for 99AI deployments to a centralized logging platform for retention and query.
- Monitor outbound data volume from the 99AI service for sudden increases consistent with bulk extraction of chat history.
- Track JWT claims distribution and alert on unusually high counts of visitor role tokens issued to the same source.
How to Mitigate CVE-2026-111707
Immediate Actions Required
- Restrict public exposure of 99AI instances behind an authenticating reverse proxy or VPN until a patched release is deployed.
- Disable visitor JWT issuance where feasible by rejecting unauthenticated fingerprint-based token requests at the proxy layer.
- Audit application logs for prior enumeration of the chat log endpoint and notify affected users if message content was exposed.
Patch Information
At the time of publication, no fixed version is listed in the advisory data. Monitor the 99AI GitHub Project Repository for a release that adds an owner check to the querySingleChat method and tightens the behavior of the JWT Authentication Guard. Operators should upgrade as soon as a release addressing CVE-2026-111707 becomes available.
Workarounds
- Apply a local patch to chatLog.service.ts that validates the authenticated subject against the userId field of the retrieved chat record before returning data.
- Enforce rate limiting and anomaly detection on the chat log API endpoint to slow sequential chatId enumeration.
- Replace sequential integer chatId values with unpredictable identifiers such as UUIDs to raise the cost of enumeration while a code fix is prepared.
# Example reverse proxy rate limit for the vulnerable endpoint (nginx)
limit_req_zone $binary_remote_addr zone=chatlog:10m rate=10r/m;
location /api/chatLog/ {
limit_req zone=chatlog burst=5 nodelay;
proxy_pass http://99ai_backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

