Back to list

pgx: SQL Injection via placeholder confusion with dollar quoted string literals — CVE-2026-41889

GitHub · GitHub · CVE-2026-41889

ID
CVE-2026-41889
Date
Updated
Activity
Source
GitHub
Vendor
GitHub
Threat
low
CVSS
2.3
EPSS
0.00009

Summary

### Impact SQL Injection can occur when: 1. The non-default simple protocol is used. 2. A dollar quoted string literal is used in the SQL query. 3. That string literal contains text that would be would be interpreted as a placeholder outside of a string literal. 4. The value of that placeholder is controllable by the attacker. e.g. ```go attackValue := `$tag$; drop table canary; --` _, err = tx.Exec(ctx, `select…

Product

go: github.com/jackc/pgx/v5 | go: github.com/jackc/pgx/v4 | go: github.com/jackc/pgx

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories