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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:14 | golang-github-jackc-pgx-v5 | no fix listed | DEBIAN-CVE-2026-41889 |
| Go | github.com/jackc/pgx | no fix listed | GHSA-j88v-2chj-qfwx |
| Go | github.com/jackc/pgx | no fix listed | GO-2026-5004 |
| Go | github.com/jackc/pgx/v4 | no fix listed | GHSA-j88v-2chj-qfwx |
| Go | github.com/jackc/pgx/v4 | no fix listed | GO-2026-5004 |
| Go | github.com/jackc/pgx/v5 | 5.9.2 | GHSA-j88v-2chj-qfwx |
| Go | github.com/jackc/pgx/v5 | 5.9.2 | GO-2026-5004 |
| Ubuntu:26.04:LTS | golang-github-jackc-pgx-v5 | no fix listed | UBUNTU-CVE-2026-41889 |
| Ubuntu:26.10 | golang-github-jackc-pgx-v5 | no fix listed | UBUNTU-CVE-2026-41889 |
Affected products (as reported)
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
- https://github.com/jackc/pgx/security/advisories/GHSA-j88v-2chj-qfwx x_refsource_CONFIRM
- https://github.com/jackc/pgx/commit/60644f84918a8af66d14a4b0d865d4edafd955da x_refsource_MISC
- https://github.com/jackc/pgx/releases/tag/v5.9.2 x_refsource_MISC