Security mailing lists by PureSourceCode

CVE-2026-41889

LOW 2.3CVSS 4.0

pgx: 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD jackc pgx
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.