CVE-2023-49785: NextChat has full-read SSRF and XSS vulnerability in /api/cors endpoint
9.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99792%
CWE
Published
8/5/2024
Updated
8/5/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| nextchat | npm | <= 2.11.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability centers around the /api/cors endpoint implementation which: 1) Accepts arbitrary URLs via path parameters 2) Forwards requests without proper validation 3) Returns full response contents 4) Supports multiple HTTP methods 5) Allows data: protocol usage. While exact implementation details aren't shown in public sources, Next.js architecture patterns suggest this would be implemented as a server-side API route handler. The critical impact (SSRF/XSS) directly stems from this endpoint's functionality as described in advisories and technical analysis.