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.
CVE-2026-7644 is a high-severity improper authorization vulnerability in ChatGPTNextWeb NextChat versions up to 2.16.1 affecting the MCP server addition function. The vulnerability allows remote exploitation without authentication bypass, potentially enabling unauthorized users to add malicious MCP servers to the application. With no patch currently available and public exploit disclosure, this poses an immediate risk to organizations using affected versions.
Immediate Actions:
1. Inventory all instances of ChatGPTNextWeb NextChat running versions ≤2.16.1 across your organization
2. Restrict network access to affected instances using firewall rules and WAF policies
3. Implement strict input validation on MCP server addition endpoints
4. Enable comprehensive logging and monitoring of MCP server configuration changes
5. Review audit logs for unauthorized MCP server additions or suspicious configuration modifications
Compensating Controls (until patch available):
6. Implement network segmentation to isolate ChatGPT instances from sensitive systems
7. Deploy API gateway with authentication enforcement for MCP server endpoints
8. Use role-based access control (RBAC) to restrict MCP server management to authorized administrators only
9. Implement request signing and mutual TLS for MCP server communications
10. Monitor for suspicious MCP server connections and data flows
Detection Rules:
11. Alert on any POST/PUT requests to /app/mcp/actions.ts addMcpServer endpoint from non-whitelisted IPs
12. Monitor for MCP server configuration changes outside maintenance windows
13. Track failed authentication attempts to MCP management interfaces
14. Flag connections to unknown or suspicious MCP servers
Long-term:
15. Plan immediate upgrade to patched version once available (monitor GitHub releases)
16. Consider alternative AI solutions with stronger authorization controls if patch delays exceed 30 days
الإجراءات الفورية:
1. قم بحصر جميع نسخ ChatGPTNextWeb NextChat التي تعمل بالإصدارات ≤2.16.1 عبر مؤسستك
2. قيّد الوصول إلى الشبكة للنسخ المتأثرة باستخدام قواعد جدار الحماية وسياسات WAF
3. طبّق التحقق الصارم من صحة المدخلات على نقاط نهاية إضافة خادم MCP
4. فعّل السجلات الشاملة ومراقبة تغييرات تكوين خادم MCP
5. راجع سجلات التدقيق للتحقق من إضافات خادم MCP غير المصرح بها أو التعديلات المريبة
الضوابط البديلة (حتى توفر التصحيح):
6. طبّق تقسيم الشبكة لعزل نسخ ChatGPT عن الأنظمة الحساسة
7. نشّر بوابة API مع فرض المصادقة لنقاط نهاية خادم MCP
8. استخدم التحكم في الوصول القائم على الأدوار (RBAC) لتقييد إدارة خادم MCP للمسؤولين المصرح لهم فقط
9. طبّق توقيع الطلب و TLS المتبادل لاتصالات خادم MCP
10. راقب اتصالات خادم MCP المريبة وتدفقات البيانات
قواعد الكشف:
11. أصدر تنبيهات لأي طلبات POST/PUT إلى نقطة نهاية addMcpServer من عناوين IP غير مدرجة في القائمة البيضاء
12. راقب تغييرات تكوين خادم MCP خارج نوافذ الصيانة
13. تتبع محاولات المصادقة الفاشلة لواجهات إدارة MCP
14. علّم الاتصالات بخوادم MCP غير معروفة أو مريبة
المدى الطويل:
15. خطّط للترقية الفورية إلى الإصدار المصحح بمجرد توفره (راقب إصدارات GitHub)
16. فكّر في حلول ذكاء اصطناعي بديلة بضوابط تفويض أقوى إذا تجاوزت تأخيرات التصحيح 30 يوماً