Skip to main content

SQL Chat CVE-2026-86123

| EUVDEUVD-2026-71955 CRITICAL
Server-Side Request Forgery (SSRF) (CWE-918)
2026-09-05 disclosure@vulncheck.com GHSA-7xvg-gx2w-r5cc
9.4
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Locate exposed SQL Chat instance
  2. Delivery
    POST attacker-chosen DB host to /api/connection endpoint
  3. Exploit
    Server proxies connection to internal database
  4. Execution
    Execute SQL and enumerate schemas
  5. Impact
    Exfiltrate data and pivot into internal network

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

Exploitation requires a network-reachable SQL Chat deployment whose /api/connection/* endpoints (execute.ts, test.ts) are exposed without an authenticating front-end - the default handlers enforce no authentication (PR:N/UI:N). The limiting factors captured by AC:H/AT:P: the attacker must know or discover reachable internal database hosts/ports, and accessing credential-protected databases requires valid or guessable credentials; instances that are only bound to localhost or fronted by authentication are not remotely exploitable.

Impact

The vendor CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/SC:H/SI:H, score 9.4) reflects real severity: network-reachable, unauthenticated (PR:N), with high confidentiality and integrity impact on both the vulnerable system and subsequent (internal) systems. The AC:H/AT:P metrics correctly signal that useful exploitation is not fully turnkey - the attacker must know or discover reachable internal database hosts and, for authenticated targets, valid credentials, which tempers automatability. No EPSS score, KEV listing, or POC is provided, so this is a high-severity design flaw rather than confirmed mass exploitation; the primary real-world risk is to any internet-exposed SQL Chat instance, where it becomes an internal-network reconnaissance and data-access springboard. Absence of KEV/EPSS data is a gap, not a downgrade - the design is inherently abusable once the endpoint is reachable.

Exploit ScenarioDerived

An attacker discovers an internet-exposed SQL Chat instance and sends an unauthenticated POST to /api/connection/test or /api/connection/execute specifying an internal database host (e.g., 10.0.0.5:5432) with a query. The server, acting as a proxy, connects to that internal database and returns results, letting the attacker enumerate schemas, exfiltrate data, and map the internal network. No public POC is confirmed, but the vulnerable handler files are publicly identified in the references.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 05, 2026

Server-side request forgery in SQL Chat (the open-source sqlchat AI database client) lets remote unauthenticated attackers abuse four API endpoints (including /api/connection/execute and /api/connection/test) that accept client-supplied database connection parameters and run arbitrary SQL against any attacker-named host. Because no authentication is enforced, an attacker can point the server at internal databases, enumerate schemas, execute queries, and pivot through the SQL Chat host into otherwise unreachable network segments. No public exploit identified at time of analysis, though the affected source files and a VulnCheck advisory pinpoint the exact vulnerable code.

RemediationAI

No vendor-released patch version is identified in the available data, so treat this as unpatched pending confirmation from the maintainers (track the VulnCheck advisory and GitHub issue #189). As compensating controls: place SQL Chat behind an authenticating reverse proxy or VPN so the /api/connection/* endpoints are never reachable by unauthenticated clients (trade-off: breaks any intended public/self-service use); enforce egress network filtering / an allowlist so the SQL Chat host can only reach the specific database servers it legitimately needs, blocking SSRF pivots to internal ranges (trade-off: must be maintained as backend inventory changes); and if the deployment does not need client-supplied connections, restrict or disable the execute.ts and test.ts connection endpoints. Consult the advisory at https://www.vulncheck.com/advisories/sql-chat-unauthenticated-database-connection-proxy-in-the-api-connection-endpoints before upgrading.

Affected VersionsENISA

sqlchat 0 ≤665af875413affadfeefff81794f1d7758782bc2

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

SQL Chat is a Next.js web application that lets users chat with databases; its API routes under src/pages/api/connection/ (execute.ts, test.ts, and related endpoints) take a full connection object - host, port, credentials, and query - from the request body and open an outbound database connection on the server's behalf. This is a textbook CWE-918 (SSRF): the server acts as a proxy that will initiate connections to arbitrary destinations chosen by the client. Combined with the absence of authentication on these routes, the application becomes an open database-connection relay. The referenced commit 665af875 files and GitHub issue #189 identify the specific handlers that trust unvalidated destination parameters.

Know when the next one hits your stack

  • 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 (vulncheck) PRIMARY 9.4 CRITICAL
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
vuln.today AI 8.7 HIGH

Unauthenticated network SSRF (PR:N) but requires knowing reachable internal targets (AC:H); scope changes to backend databases (S:C) with high confidentiality/integrity, no direct availability impact.

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

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

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

DescriptionCVE.org

SQL Chat contains four unauthenticated API endpoints that accept client-supplied database connection parameters and execute arbitrary SQL queries against attacker-specified hosts. Attackers can connect to internal databases, execute SQL commands, enumerate schemas, and pivot into the server's network without authentication.

Executive ViewAI

Why It Matters

SQL Chat, an open-source AI database client, contains a critical server-side request forgery vulnerability (CVSS 9.4) that permits unauthenticated remote attackers to execute arbitrary SQL against any internal database accessible from the SQL Chat host. This vulnerability bypasses network segmentation, allowing attackers to extract sensitive data or move laterally through your infrastructure without credentials. No patch is available, creating immediate risk for any organization running this software.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Deploy interim mitigations: (1) restrict outbound database connections from SQL Chat hosts via firewall rules to only approved internal databases; (2) block or gate the four vulnerable API endpoints with authentication at your API gateway or reverse proxy; (3) implement Web Application Firewall rules to detect and block requests with suspicious database connection parameters; (4) enable comprehensive audit logging on all SQL Chat API calls and alert on cross-host or unusual database connection attempts; (5) segment the SQL Chat host network to limit lateral movement if compromised.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Low
niche open-source AI database chat tool, limited enterprise footprint
Social Media
4
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
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