Vulnerability · Published May 8, 2026 · Assigned by GitHub_M

CVE-2026-41889pgx: SQL Injection via placeholder confusion with dollar quoted string literals

Low 2.3

In plain English

A low-severity SQL injection in pgx from jackc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.3Low
Exploit odds (30 days)0.4%top 70.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

pgx is a PostgreSQL driver and toolkit for Go. Prior to version 5.9.2, SQL injection can occur when the non-default simple protocol is used, a dollar quoted string literal is used in the SQL query, that string literal contains text that would be would be interpreted as a placeholder outside of a string literal, and the value of that placeholder is controllable by the attacker. This issue has been patched in version 5.9.2.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:14golang-github-jackc-pgx-v5no fix listedDEBIAN-CVE-2026-41889
Gogithub.com/jackc/pgxno fix listedGHSA-j88v-2chj-qfwx
Gogithub.com/jackc/pgxno fix listedGO-2026-5004
Gogithub.com/jackc/pgx/v4no fix listedGHSA-j88v-2chj-qfwx
Gogithub.com/jackc/pgx/v4no fix listedGO-2026-5004
Gogithub.com/jackc/pgx/v55.9.2GHSA-j88v-2chj-qfwx
Gogithub.com/jackc/pgx/v55.9.2GO-2026-5004
Ubuntu:26.04:LTSgolang-github-jackc-pgx-v5no fix listedUBUNTU-CVE-2026-41889
Ubuntu:26.10golang-github-jackc-pgx-v5no fix listedUBUNTU-CVE-2026-41889

Affected products (as reported)

VendorProductVersions
jackc pgx < 5.9.2

Weakness: CWE-89 · Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

References