{"id":"CVE-2026-41889","summary":"pgx: SQL Injection via placeholder confusion with dollar quoted string literals","details":"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.","aliases":["GHSA-j88v-2chj-qfwx"],"modified":"2026-06-18T03:55:11.289715596Z","published":"2026-05-08T15:53:00.251Z","related":["CGA-rrgr-7xqx-rg3q","openSUSE-SU-2026:10976-1","openSUSE-SU-2026:10992-1"],"database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41889.json","cwe_ids":["CWE-89"]},"references":[{"type":"WEB","url":"https://github.com/jackc/pgx/releases/tag/v5.9.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41889.json"},{"type":"ADVISORY","url":"https://github.com/jackc/pgx/security/advisories/GHSA-j88v-2chj-qfwx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41889"},{"type":"FIX","url":"https://github.com/jackc/pgx/commit/60644f84918a8af66d14a4b0d865d4edafd955da"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/jackc/pgx","events":[{"introduced":"0"},{"fixed":"0aeabbcf11d859229c1f0b20e710d3596c76bf27"},{"fixed":"60644f84918a8af66d14a4b0d865d4edafd955da"}],"database_specific":{"cpe":"cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:*","extracted_events":[{"introduced":"0"},{"fixed":"5.9.2"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v5.9.1","v5.9.0","v5.8.0","v5.7.6","v5.7.5","v5.7.4","v5.7.3","v5.7.2","v5.7.1","v5.7.0","v5.6.0","v5.5.5","v5.5.4","v5.5.3","v5.5.2","v5.5.1","v5.5.0","v5.4.3","v5.4.2","v5.4.1","v5.4.0","v5.3.1","v5.3.0","v5.2.0","v5.1.1","v5.1.0","v5.0.4","v5.0.3","v5.0.2","v5.0.1","v5.0.0","v4.17.2","v4.17.1","v4.17.0","v4.16.1","v4.16.0","v4.15.0","v4.14.1","v4.14.0","v4.13.0","v4.12.0","v4.11.0","v4.10.1","v4.10.0","v4.9.2","v4.9.1","v4.9.0","v4.8.1","v4.8.0","v4.7.2","v4.7.1","v4.7.0","v4.6.0","v4.5.0","v4.4.1","v4.4.0","v4.3.0","v4.2.1","v4.2.0","v4.1.2","v4.1.1","v4.1.0","v4.0.1","v4.0.0","v4.0.0-rc2","v4.0.0-rc1","v4.0.0-pre2","v4.0.0-pre1","v3.2.0","v3.1.0","v3.0.1","v3.0.0","v2.11.0","v2.10.0","v2.9.0","v2.8.1","v2.8.0","v2.7.1","v2.7.0","v2.6.0","v2.5.0","v2.4.0","v2.3.0","v2.2.0","v2.1.0","v2.0.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-41889.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}