---
id: CVE-2026-86123
title: >-
  SQL Chat contains four unauthenticated API endpoints that accept
  client-supplied database connection parameters and execute arbitrary SQL
  queries against attacker-specified hosts
summary: >-
  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 …
severity: high
cvss: 8.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N'
cwe:
  - CWE-918
vendor: sqlchat
product: sqlchat
affected:
  - sqlchat <= 665af875413affadfeefff81794f1d7758782bc2
published: '2026-09-05'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:43:32.537'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86123'
references:
  - url: 'https://github.com/sqlchat/sqlchat'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/sqlchat/sqlchat/blob/665af875413affadfeefff81794f1d7758782bc2/src/pages/api/connection/execute.ts
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/sqlchat/sqlchat/blob/665af875413affadfeefff81794f1d7758782bc2/src/pages/api/connection/test.ts
    label: disclosure@vulncheck.com
  - url: 'https://github.com/sqlchat/sqlchat/issues/189'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/sql-chat-unauthenticated-database-connection-proxy-in-the-api-connection-endpoints
    label: disclosure@vulncheck.com
  - url: 'https://github.com/sqlchat/sqlchat/issues/189'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00487
epssPercentile: 0.39334
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-08T13:09:12.337409Z'
ingestedAt: '2026-09-06T07:51:56.300Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
