| tiêu đề | ChatGPTNextWeb NextChat 2.16.1 Permissive CORS Wildcard Policy |
|---|
| Mô tả | NextChat configures its Next.js application to attach maximally permissive CORS response headers to every API endpoint under the /api/* path prefix. The configuration in next.config.mjs (lines 38-63) sets.This configuration allows any website on the internet to make cross-origin requests to all NextChat API endpoints. Because Access-Control-Allow-Headers: * permits custom headers, attacker-controlled JavaScript can set the x-base-url header, which the proxy endpoint (/api/[provider]/[...path]/route.ts) uses to determine the server-side fetch destination. This directly enables cross-origin SSRF attacks. |
|---|
| Nguồn | ⚠️ https://github.com/ChatGPTNextWeb/NextChat/issues/6756 |
|---|
| Người dùng | Yu_Bao (UID 89348) |
|---|
| Đệ trình | 17/04/2026 07:19 (cách đây 2 các tháng) |
|---|
| Kiểm duyệt | 01/05/2026 18:34 (14 days later) |
|---|
| Trạng thái | được chấp nhận |
|---|
| Mục VulDB | 360755 [ChatGPTNextWeb NextChat đến 2.16.1 API Endpoint Next.js nâng cao đặc quyền] |
|---|
| điểm | 20 |
|---|