提交 #806833: ChatGPTNextWeb NextChat 2.16.1 Permissive CORS Wildcard Policy信息

标题ChatGPTNextWeb NextChat 2.16.1 Permissive CORS Wildcard Policy
描述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.
来源⚠️ https://github.com/ChatGPTNextWeb/NextChat/issues/6756
用户
 Yu_Bao (UID 89348)
提交2026-04-17 07時19分 (6 月前)
管理2026-05-01 18時34分 (14 days later)
状态已接受
VulDB条目360755 [ChatGPTNextWeb NextChat 直到 2.16.1 API Endpoint Next.js 权限提升]
积分20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!