Skip to main content

NextChat CVE-2026-105238

| EUVDEUVD-2026-92263 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-10-05 VulDB GHSA-rhg8-4whm-xj7w
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Reach exposed /api/proxy endpoint
  2. Exploit
    Set malicious x-base-url header
  3. Execution
    Server fetches attacker-chosen internal URL
  4. Impact
    Retrieve internal/metadata response

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

Requires that the NextChat /api/proxy endpoint (the Proxy Fallback Handler) be network-reachable by the attacker; the attacker fully controls the x-base-url request header, which the vulnerable code concatenates directly into the server-side fetch target without validating the hostname against internal/private/metadata ranges. No authentication, no special configuration, and no user interaction are needed (PR:N/UI:N/AC:L), so default deployments of versions up to 2.16.1 are exploitable. The practical impact is LIMITED by what the server's network position can reach - the severity of a successful SSRF rises sharply if the instance runs in a cloud environment with an accessible instance-metadata service or internal-only APIs, and is lower for an isolated host with no sensitive internal endpoints.

Impact

This is a genuine but medium-tier risk, not a drop-everything emergency. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N) describes a remotely reachable, unauthenticated, low-complexity SSRF requiring no user interaction, which is the worst-case precondition profile; however the impact metrics are deliberately scoped low (VC:L/VI:L/VA:L, SC:N/SI:N/SA:N), yielding a 6.9 MEDIUM rather than a critical. The SSVC/temporal signal E:P (Proof-of-Concept) aligns with the reported publicly available exploit, so exploitation is plausible but there is no evidence of mass exploitation. No EPSS score and no CISA KEV entry were provided in the input, so exploitation probability cannot be quantified and active in-the-wild use is NOT confirmed - treat exploitation status as 'publicly available exploit code exists' only. A key caveat: classic SSRF that can reach cloud metadata endpoints (the patch explicitly blocks 169.254.169.254 and metadata.google.internal) often warrants a scope change / higher confidentiality impact than the VC:L the vendor assigned, so the real impact in a cloud-hosted deployment with reachable instance credentials could exceed the 6.9 rating - verify against your deployment topology.

Exploit ScenarioDerived

An attacker sends an HTTP request to a publicly exposed NextChat instance's /api/proxy endpoint with a crafted x-base-url header pointing at an internal address (e.g. http://169.254.169.254/ or an internal service), and the server-side proxyHandler blindly fetches that URL and returns the response. A public PoC exists (referenced in GitHub issue #6813 and related #6814), and because the CVSS vector is AV:N/AC:L/PR:N/UI:N the attack is remote, low-complexity, and needs no authentication or user interaction against a reachable instance.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 05, 2026

Server-side request forgery (CWE-918) in ChatGPTNextWeb NextChat up to and including 2.16.1 lets an unauthenticated, remote attacker who can reach the /api/proxy endpoint (the Proxy Fallback Handler) redirect the server's outbound HTTP requests to arbitrary hosts by supplying a crafted x-base-url header. Because the hostname is concatenated into the server-side fetch target without any validation against private, loopback, link-local, or cloud-metadata ranges, a successful attack can reach internal-only services or instance-metadata endpoints, with impact bounded by what the host's network position can actually reach. Publicly available exploit code exists (referenced GitHub issue #6813), but there is no confirmation of active exploitation; the fix is an unmerged pull request (#6884) that awaits acceptance, so no released patched version is independently confirmed and the risk should be treated as a genuine but medium-tier issue rather than an emergency.

RemediationAI

No released patched version is independently confirmed: the only fix is the upstream pull request https://github.com/ChatGPTNextWeb/NextChat/pull/6884, which awaits acceptance, so treat this as "upstream fix available (PR/commit); released patched version not independently confirmed" and track that PR (and its related issue https://github.com/ChatGPTNextWeb/NextChat/issues/6813) for merge and release before upgrading. Until a tagged release containing the fix exists, apply the compensating controls that the PR itself implements: restrict the /api/proxy route so that it is not internet-reachable (place it behind authentication or an allowlisting reverse proxy), since that is the single most effective mitigation but breaks any legitimate client use of the proxy fallback; alternatively enforce an upstream allowlist at the reverse proxy so that outbound requests can only go to the intended upstream API hosts, rejecting x-base-url values pointing at loopback (127.0.0.0/8), RFC1918 ranges (10/8, 172.16/12, 192.168/16), link-local (169.254.0.0/16, including the 169.254.169.254 cloud metadata endpoint), CGNAT (100.64/10), IPv6 loopback/link-local/unique-local, and decimal- or dotted-trailing-dot-encoded IP forms - with the trade-off that legitimate custom or self-hosted upstream endpoints will also be blocked. Because the same code path previously leaked the server-side OPENAI_API_KEY via a naive substring match on api.openai.com, administrators should also rotate that key and confirm the running build uses strict hostname equality before key injection; network-level egress filtering from the NextChat host to internal subnets and metadata services provides an additional layer at the cost of restricting legitimate internal integrations.

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 a Next.js-based, self-hostable ChatGPT-style web client, and the vulnerable code lives in the App Router API route app/api/proxy.ts, whose proxyHandler acts as a generic proxy fallback that forwards requests to a user-supplied upstream base URL. The root-cause class is CWE-918 (Server-Side Request Forgery): the value of the x-base-url request header is read and concatenated directly into the server-side fetch URL without any hostname or scheme validation, so the attacker controls the destination of the server's outbound request. The submitted fix in PR #6884 introduces parseHttpUrl (restricting to http/https), normalizeHostname (lowercasing and stripping trailing dots), and isBlockedProxyTarget / isBlockedHostname logic that blocks localhost, *.localhost, *.internal, metadata.google.internal, 0.0.0.0, RFC1918 ranges (10/8, 172.16/12, 192.168/16), loopback (127/8), link-local (169.254/16), CGNAT (100.64/10), multicast and reserved (>=224), decimal/hex-encoded IPv4, and IPv6 loopback, link-local (fe80::), unique-local (fc00::/fd00::) and IPv4-mapped addresses. The same diff exposes a closely related second defect: the original code decided whether to inject the server's OPENAI_API_KEY via a naive substring test (baseUrl?.includes("api.openai.com")), which can leak the server key when api.openai.com appears merely as a substring or query fragment of an attacker-controlled URL; the patch replaces this with strict hostname equality (isOpenAIApiHost). Per the CPE string cpe:2.3:a:chatgptnextweb:nextchat:*:*:*:*:*:*:*:*, the affected product is the NextChat application itself across versions through 2.16.1, meaning typical Docker, Vercel, or Node self-hosted deployments are in scope.

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

Remote unauthenticated attacker-controlled header with no UI gives AV:N/AC:L/PR:N/UI:N; SSRF yields limited C/I/A (L) with S:U consistent with the vendor's SC:N, though cloud-metadata reach could justify higher.

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

2
CVSS changed
Oct 05, 2026 - 07:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
CVE Published
Oct 05, 2026 - 06:15 cve.org
MEDIUM 6.9

DescriptionCVE.org

A flaw has been found in ChatGPTNextWeb NextChat up to 2.16.1. This vulnerability affects the function proxyHandler of the file app/api/proxy.ts of the component Proxy Fallback Handler. This manipulation of the argument x-base-url causes server-side request forgery. It is possible to initiate the attack remotely. The exploit has been published and may be used. The pull request to fix this issue awaits acceptance.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Medium
popular open-source self-hosted ChatGPT UI, common but not core infrastructure
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.4%
Patch available Yes
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
Yes
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