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.
References
| Link | Resource |
|---|---|
| https://github.com/jackc/pgx/commit/60644f84918a8af66d14a4b0d865d4edafd955da | Patch |
| https://github.com/jackc/pgx/releases/tag/v5.9.2 | Release Notes |
| https://github.com/jackc/pgx/security/advisories/GHSA-j88v-2chj-qfwx | Mitigation Vendor Advisory |
Configurations
History
21 May 2026, 19:58
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:* | |
| First Time |
Jackc
Jackc pgx |
21 May 2026, 17:50
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/jackc/pgx/commit/60644f84918a8af66d14a4b0d865d4edafd955da - Patch | |
| References | () https://github.com/jackc/pgx/releases/tag/v5.9.2 - Release Notes | |
| References | () https://github.com/jackc/pgx/security/advisories/GHSA-j88v-2chj-qfwx - Mitigation, Vendor Advisory | |
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 9.8 |
| CPE | cpe:2.3:a:pgx_project:pgx:*:*:*:*:*:go:*:* | |
| First Time |
Pgx Project
Pgx Project pgx |
08 May 2026, 17:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-05-08 17:16
Updated : 2026-05-21 19:58
NVD link : CVE-2026-41889
Mitre link : CVE-2026-41889
CVE.ORG link : CVE-2026-41889
JSON object : View
Products Affected
jackc
- pgx
CWE
CWE-89
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
