CVE-2026-56868: GSS Authentication Flaw in github.com/lib/pq Leading to Insecure Connections

github.com/lib/pq Updated 18 Aug 2026

Summary

18/08/2026
No i
Unrated
Not published

CVE-2026-56868: GSS authentication completes without mutual proof in github.com/lib/pq. Affects github.com/lib/pq versions >= 1.6.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The github.com/lib/pq package is a PostgreSQL driver for the Go programming language, enabling Go applications to interact with PostgreSQL databases. It is widely used for its simplicity and efficiency in handling database connections. However, it has a vulnerability related to GSSAPI authentication, which is crucial for secure communication between clients and servers.

Vulnerability Detail

The vulnerability arises because the github.com/lib/pq package does not enforce a complete GSSAPI exchange before accepting AuthenticationOk and ReadyForQuery messages. This flaw allows an unauthenticated peer to initiate GSS authentication, leading the driver to send its initial GSS token without ensuring that mutual authentication has been successfully completed. Consequently, the connection may be established even if mutual authentication fails, exposing the application to potential security risks such as unauthorized access and data breaches.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, consider implementing additional checks in your application to verify the authentication status before proceeding with any database operations. This can help mitigate risks until the package is updated.

Conclusion

The vulnerability identified as CVE-2026-56868 in the github.com/lib/pq package poses significant security risks due to improper handling of GSSAPI authentication. Users are strongly advised to update to the latest version to mitigate these risks and ensure secure database connections.

See every vulnerability recorded for github.com/lib/pq →

Share this vulnerability

FAQ

The vulnerability allows GSS authentication to complete without mutual proof, potentially enabling unauthorized access.

You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.

If exploited, this vulnerability could lead to unauthorized access to the database, data breaches, and other security incidents.

Yes, a patch is available in version 1.6.1 of the github.com/lib/pq package. Users should update to this version or later.

GSSAPI (Generic Security Services Application Program Interface) is a standard for providing security services in network applications, ensuring secure authentication and communication.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/lib/pq.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback