# CVE-2026-107314: pgjdbc does not enforce requireAuth when the value excludes every authentication method

> Misconfigured requireAuth settings in pgjdbc allow attackers to bypass authentication restrictions and capture cleartext database passwords via man-in-the-middle attacks.

- **Severity:** Medium 5.9 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 7 Oct 2026
- **Updated:** 8 Oct 2026
- **Also known as:** CLEANSTART-2026-WS83724, DEBIAN-CVE-2026-107314, GHSA-rhp9-mr79-r74h, UBUNTU-CVE-2026-107314

## What is CVE-2026-107314?

CVE-2026-107314 is a medium-severity vulnerability in pgjdbc, published on 7 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

pgjdbc, the PostgreSQL JDBC Driver, versions 42.7.11 through 42.7.13 enforce no restriction when the requireAuth connection property excludes all six authentication methods the driver knows, for example requireAuth=!password,!md5,!gss,!sspi,!scram-sha-256,!none. The driver then accepts any method the server asks for, including cleartext password authentication. A value without a method in it, such as requireAuth=, (a single comma), is affected the same way. An attacker positioned between the application and its server can ask for cleartext password authentication and receive the database password. A positive list such as requireAuth=scram-sha-256, and a partial exclusion such as requireAuth=!password,!md5, are enforced correctly. The property has no default value, so a deployment that does not set it is not affected. 42.7.14 fixes the problem: such a connection is refused with SQLState 08004, and a value without a method in it is rejected as invalid.

Weakness: CWE-636 (Not Failing Securely)

## Which versions are affected by CVE-2026-107314?


## How do I fix CVE-2026-107314?

Upgrade to a fixed version.

## Is CVE-2026-107314 being exploited?

There is no known exploitation of CVE-2026-107314 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-107314 and fix it if it is affected.

What it is: CVE-2026-107314 is a medium-severity vulnerability in pgjdbc, published on 7 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-107314 in the wild and no public exploit code.

Affected product: pgjdbc. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-107314/ (Markdown: https://insights.sbomify.com/CVE-2026-107314/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-107314
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-107314
- OSV: https://osv.dev/vulnerability/CVE-2026-107314

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-107314/
Summaries are generated and may contain mistakes; the official description above is the record.
