Critical severity · published May 8, 2026
CVE-2026-41889
pgx: SQL Injection via placeholder confusion with dollar quoted string literals
9.8
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 29% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PG
pgx · jackc
< 5.9.2 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-41889
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-41889
Patch
https://github.com/jackc/pgx/commit/60644f84918a8af66d14a4b0d865d4edafd955da
Release Notes
https://github.com/jackc/pgx/releases/tag/v5.9.2
Mitigation
https://github.com/jackc/pgx/security/advisories/GHSA-j88v-2chj-qfwx
More from pgx
9.8
CVE-2026-33816
CVE-2026-33816 in github.com/jackc/pgx
9.8
CVE-2026-33815
CVE-2026-33815 in github.com/jackc/pgx
9.8
CVE-2024-27304
pgx is a PostgreSQL driver and toolkit for Go
8.1
CVE-2024-27289
pgx is a PostgreSQL driver and toolkit for Go
