CVE-2026-41889
LOW 2.3CVSS 4.0pgx: SQL Injection via placeholder confusion with dollar quoted string literals
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.
- Published
- 8 May 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-89
- Also known as
- GHSA-j88v-2chj-qfwxGO-2026-5004
- Sources
- NVDJSONOSV GHSA-j88v-2chj-qfwxJSONOSV GO-2026-5004JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jackc | pgxcpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:* |
< 5.9.2 | 5.9.2 |
| OSV | Go | github.com/jackc/pgx/v5 | < 5.9.2 | 5.9.2 |
| OSV | Go | github.com/jackc/pgx/v4 | <= 4.18.3 | |
| OSV | Go | github.com/jackc/pgx | <= 3.6.2 | |
| OSV | Go | github.com/jackc/pgx | all versions | |
| OSV | Go | github.com/jackc/pgx/v4 | all versions |
References
- https://github.com/jackc/pgx/commit/60644f84918a8af66d14a4b0d865d4edafd955da · Patch, WEB, FIX
- https://github.com/jackc/pgx/releases/tag/v5.9.2 · Release Notes, WEB
- https://github.com/jackc/pgx/security/advisories/GHSA-j88v-2chj-qfwx · Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-41889 · ADVISORY
- https://github.com/jackc/pgx · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 8 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 22 Apr 2026)