CVE-2026-41889
pgx is a PostgreSQL driver and toolkit for Go. Prior to version …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/jackc/pgx/security/advisories/GHSA-j88v-2chj-qfwx
- github.com/jackc/pgx/commit/60644f84918a8af66d14a4b0d865d4edafd955da
- github.com/jackc/pgx/releases/tag/v5.9.2
- github.com/advisories/GHSA-j88v-2chj-qfwx
- nvd.nist.gov/vuln/detail/CVE-2026-41889
- nvd.nist.gov/vuln/detail/CVE-2026-41889
- cve.org/CVERecord?id=CVE-2026-41889
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.