CVE-2026-7644 Details
Description
A vulnerability has been found in ChatGPTNextWeb NextChat up to 2.16.1. Affected is the function addMcpServer of the file app/mcp/actions.ts. The manipulation leads to improper authorization. Remote exploitation of the attack is possible. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
A vulnerability allowing unauthenticated remote code execution has been identified in ChatGPTNextWeb NextChat versions through 2.16.1. The issue resides in the 'addMcpServer' function within 'app/mcp/actions.ts', where improper authorization allows remote exploitation. The vulnerability has been publicly disclosed and could be actively exploited.
To address this vulnerability, it is recommended to add authentication and authorization checks to the 'addMcpServer' function, ensuring that only authorized users can invoke it. Additionally, the 'isMcpEnabled' function should be called as a guard to verify that the MCP feature is enabled before processing any MCP-related actions. Implementing a command allowlist to restrict executable commands to a predefined set of safe options can also help mitigate the risk. Finally, consider moving MCP management to a dedicated API route with proper authentication and input validation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 2, 2026CISA-ADP
Assessed May 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ChatGPTNextWeb/NextChat/ | [email protected] | Vendor |
| https://github.com/ChatGPTNextWeb/NextChat/issues/6757 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vuldb.com/submit/806851 | [email protected] | Permission Required |
| https://vuldb.com/vuln/360756 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/360756/cti | [email protected] | AdvisoryPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-266 | Incorrect Privilege Assignment | [email protected] |
| CWE-285 | Improper Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ChatGPTNextWeb NextChat | <= 2.16.x 2.16.1 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 2, 2026 | New CVE Received | [email protected] |
Volerion