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

Published May 8, 2026
·
Updated

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.

Other sources

pgx: SQL Injection via placeholder confusion with dollar quoted string literals

Microsoft

Affected Software

5 affected componentsFixes available
golang/github.com/jackc/pgx<5.9.2
jackc Pgx Go<5.9.2
Microsoft azl3 telegraf 1.31.0-22<1.31.0-22
1.31.0-22
Microsoft azl3 keda 2.14.1-14<2.14.1-15
2.14.1-15
Microsoft azl3 keda 2.14.1-15<2.14.1-15
2.14.1-15

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.31.0-22
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.14.1-15
  3. Upgrade

    Upgrade pgx to a version that resolves this vulnerability.

    Fixed in 5.9.2

Event History

May 8, 2026
CVE Published
via MITRE·03:53 PM
Data Sourced
via MITRE·03:53 PM
DescriptionWeakness
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 10, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:03 AM
Affected Software
Updated
via Microsoft·08:03 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-41889?

CVE-2026-41889 is considered a high severity vulnerability due to the potential for SQL injection.

2

How do I fix CVE-2026-41889?

To fix CVE-2026-41889, upgrade the pgx library to version 5.9.2 or later.

3

What causes CVE-2026-41889?

CVE-2026-41889 is caused by SQL injection vulnerabilities that arise from a placeholder confusion with dollar quoted string literals.

4

Which versions of pgx are affected by CVE-2026-41889?

pgx versions prior to 5.9.2 are affected by CVE-2026-41889.

5

What is pgx in the context of CVE-2026-41889?

pgx is a PostgreSQL driver and toolkit for Go that is vulnerable to SQL injection in earlier versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203