Skip to main content

NextChat CVE-2026-7177

| EUVDEUVD-2026-25928 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-04-27 VulDB
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify internet-exposed NextChat instance
  2. Delivery
    Craft request targeting internal URL via proxy route
  3. Exploit
    Submit unauthenticated HTTP request to /api/[provider]/[...path]
  4. Execution
    proxyHandler forwards request to internal destination
  5. Persist
    Retrieve internal service or metadata response
  6. Impact
    Extract credentials or sensitive internal data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The NextChat application must be deployed and accessible over the network, which is the default configuration for self-hosted instances. No authentication is required (CVSS PR:N) and no victim user interaction is needed (UI:N). The vulnerable proxyHandler function is part of the standard Next.js API route at app/api/[provider]/[...path]/route.ts and is active in any standard deployment of versions up to 2.16.1. Exploitation is constrained by the SSVC 'not automatable' determination - effective attacks require identifying internal service addresses or cloud metadata endpoints relevant to the target environment, meaning opportunistic mass scanning is less impactful than targeted attacks. Impact is limited to partial access (VC:L/VI:L/VA:L); direct code execution or full system compromise is not achievable through this vector alone.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) represents the most permissive attack surface - unauthenticated, network-reachable, no complexity or prerequisites - consistent with a default self-hosted deployment. Impact is bounded to partial across VC:L/VI:L/VA:L with no subsequent-system impact (SC:N/SI:N/SA:N), yielding a score of 5.5 rather than a critical rating. The EPSS score of 0.04% (14th percentile) is low despite the confirmed public PoC, aligning with the SSVC determination of 'not automatable' - mass exploitation scanning is unlikely given the need for target-specific payload crafting. The vulnerability is NOT in the CISA KEV catalog, confirming no verified widespread active exploitation at time of analysis. The primary real-world risk is targeted SSRF against self-hosted instances where internal network services are accessible from the application server, particularly cloud environments with metadata API endpoints. The absence of a vendor patch materially increases exposure duration and elevates priority for compensating controls.

Exploit ScenarioDerived

An unauthenticated remote attacker sends a crafted HTTP GET or POST request to the NextChat proxy API route targeting /api/[provider]/[...path] with a URL parameter pointing to an internal resource such as the AWS EC2 instance metadata endpoint (http://169.254.169.254/latest/meta-data/iam/security-credentials/). The proxyHandler function forwards the request without validating the destination, and the server returns the internal response - potentially including cloud IAM credentials - to the attacker. A public proof-of-concept demonstrating this technique is available at https://gist.github.com/YLChen-007/da6b00024f5b7e1d4fa0658c19b77fbf.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Server-side request forgery in ChatGPTNextWeb NextChat 2.16.0-2.16.1 allows unauthenticated remote attackers to manipulate the proxyHandler function in app/api/[provider]/[...path]/route.ts to coerce the server into issuing arbitrary HTTP requests to attacker-controlled internal or external destinations. A public proof-of-concept exploit is confirmed available, and the vendor has not yet responded to responsible disclosure filed as GitHub issue #6742, leaving no patch available. Despite a low EPSS score of 0.04%, the zero-authentication requirement combined with public exploit code warrants prompt compensating controls for any internet-exposed deployment.

RemediationAI

No vendor-released patch has been identified at time of analysis - the project maintainers have not responded to the GitHub issue disclosure at https://github.com/ChatGPTNextWeb/NextChat/issues/6742. As an immediate compensating control, deploy egress firewall rules on the NextChat application server to allowlist only required AI provider API endpoints (e.g., api.openai.com, api.anthropic.com) and explicitly block outbound requests to RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback (127.0.0.0/8), and cloud metadata endpoints (169.254.169.254); note this may require maintenance as provider IPs change. If the application can be placed behind an authentication proxy (e.g., OAuth2 middleware or Cloudflare Access), doing so converts PR:N to PR:L and meaningfully raises the exploitation bar, though this may conflict with intended public-access deployments. Monitor VulDB (https://vuldb.com/vuln/359779) and the upstream GitHub repository for a patched release.

Affected VersionsENISA

NextChat 2.16.0
NextChat 2.16.1

Affected Packages

euvd nextchat no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

NextChat is an open-source Next.js web application that proxies user requests to multiple AI providers (OpenAI, Anthropic, etc.) via dynamic API routes. The vulnerability resides in the proxyHandler function within app/api/[provider]/[...path]/route.ts, where user-supplied URL components are forwarded to backend services without adequate origin validation or allowlist enforcement. This is a textbook CWE-918 (Server-Side Request Forgery) flaw - the application server becomes an unwitting HTTP relay, potentially exposing cloud metadata endpoints (e.g., 169.254.169.254), internal microservices, or RFC 1918-addressed resources inaccessible from the public internet. The affected CPE is cpe:2.3:a:chatgptnextweb:nextchat:*:*:*:*:*:*:*:*, covering all versions through 2.16.1 per NVD and EUVD-2026-25928.

Know when Nextchat gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 7.3 HIGH

Network-reachable with no auth (PR:N, AV:N); partial CIA impact on vulnerable system only, no scope change per 4.0 subsequent-system metrics.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
PoC Detected
Apr 30, 2026 - 19:26 vuln.today
Public exploit code
CVSS changed
Apr 29, 2026 - 01:12 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
Severity Changed
Apr 27, 2026 - 22:22 NVD
HIGH MEDIUM
CVSS changed
Apr 27, 2026 - 22:22 NVD
7.3 (HIGH) 6.9 (MEDIUM)
CVE Published
Apr 27, 2026 - 21:45 nvd
MEDIUM 5.5

DescriptionCVE.org

A security flaw has been discovered in ChatGPTNextWeb NextChat up to 2.16.1. Affected by this issue is the function proxyHandler of the file app/api/[provider]/[...path]/route.ts. The manipulation results in server-side request forgery. The attack may be performed from remote. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Prevalence
Low
self-hosted open-source AI chat client, niche deployment footprint
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy