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-111704 Overview
LangChat through commit 2a6285a contains a missing authentication vulnerability [CWE-306] that exposes REST controllers to unauthenticated remote attackers. The root cause is a missing Sa-Token interceptor registration in the Spring Web configuration. Attackers can query /api/v1/auth/users to retrieve plaintext user passwords, extract Large Language Model (LLM) provider API keys, create super-admin accounts, and modify or delete application data. The flaw affects the LangChat open-source LLM chat platform and requires no privileges or user interaction to exploit.
Critical Impact
Unauthenticated remote attackers can read plaintext credentials, steal LLM API keys, and create super-admin accounts on vulnerable LangChat deployments.
Affected Products
- LangChat through commit 2a6285a
- langchat-auth module (REST controllers including AigcUserController)
- langchat-server module (WebAsyncConfig missing Sa-Token interceptor)
Discovery Timeline
- 2026-10-16 - CVE-2026-111704 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-111704
Vulnerability Analysis
LangChat uses the Sa-Token authentication library to enforce access control on its REST endpoints. Enforcement requires registering a Sa-Token interceptor in Spring's WebMvcConfigurer. In the vulnerable commit, WebAsyncConfig does not register this interceptor. As a result, no authentication or authorization check runs against incoming HTTP requests to any controller.
The AigcUserController exposes user management endpoints under /api/v1/auth/users. Because interception is absent, any network-reachable attacker can invoke these endpoints directly. Attacker-controlled requests return user records containing plaintext passwords, as the AuthServiceImpl logic stores and returns credentials without hashing in the exposed path. Additional endpoints disclose configured LLM provider API keys and permit creating privileged accounts.
Root Cause
The root cause is a configuration flaw mapped to [CWE-306] Missing Authentication for Critical Function. The Sa-Token framework provides route-level enforcement through an interceptor that must be explicitly added. The LangChat WebAsyncConfig class omits the addInterceptors registration, so no principal check runs before controller methods execute. The vulnerability compounds a credential storage weakness: user passwords are stored and returned in plaintext rather than hashed with a password derivation function.
Attack Vector
Exploitation requires only network access to the LangChat HTTP service. An attacker sends an HTTP GET request to /api/v1/auth/users and receives the full user table in the response. The attacker then reuses the plaintext credentials to authenticate as any user, extracts LLM API keys from configuration endpoints for financial abuse, or issues POST requests to create a new super-admin account. Data modification and deletion endpoints are equally reachable without credentials.
Technical details are documented in the VulnCheck advisory and the HackMD credential exposure report. The vulnerable code paths are visible in the AigcUserController source and the WebAsyncConfig source.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-111704
Indicators of Compromise
- Unauthenticated HTTP requests to /api/v1/auth/users returning HTTP 200 with user records
- Unexpected creation of accounts with super-admin role in the LangChat user table
- Access log entries hitting /api/v1/auth/* endpoints without a preceding Sa-Token login request
- Outbound traffic from the LangChat host to attacker-controlled LLM API consumption, indicating stolen API keys in use
Detection Strategies
- Audit LangChat web server access logs for GET requests to /api/v1/auth/users and other /api/v1/* endpoints without authenticated session cookies or tokens
- Review the deployed WebAsyncConfig.java to confirm whether a Sa-Token interceptor is registered via addInterceptors
- Correlate newly created administrator accounts against change tickets and known operator activity
Monitoring Recommendations
- Enable verbose HTTP access logging on the LangChat reverse proxy or application server
- Alert on anomalous volumes of requests to /api/v1/auth/users from a single source IP
- Monitor LLM provider billing dashboards for sudden spikes indicating stolen API key usage
How to Mitigate CVE-2026-111704
Immediate Actions Required
- Remove LangChat from untrusted networks and place it behind an authenticating reverse proxy or VPN until patched
- Rotate all user passwords and all configured LLM provider API keys that may have been exposed
- Audit the user table for unauthorized super-admin accounts and remove any that cannot be attributed to legitimate operators
- Register a Sa-Token interceptor in WebAsyncConfig to enforce authentication on all REST routes
Patch Information
As of the NVD publication date, no fixed release is referenced in the advisory. Operators should track the upstream LangChat repository for a commit that registers the Sa-Token interceptor and replaces plaintext password storage with a salted hash. Review the VulnCheck advisory for the latest remediation guidance.
Workarounds
- Place LangChat behind a reverse proxy (for example, Nginx or Traefik) that enforces HTTP basic authentication or mutual TLS on every path
- Restrict inbound access to the LangChat port using host-based firewall rules or cloud security groups, allowing only trusted administrator IP ranges
- Apply a local source patch that adds a Sa-Token SaInterceptor registration in WebAsyncConfig#addInterceptors and rebuild the application
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

