# CVE-2025-11695: Configuration may unexpectedly disable certificate validation

> Attackers can bypass TLS certificate validation in MongoDB Rust Driver by using a specific connection string parameter, enabling man-in-the-middle attacks.

- **Severity:** High 8.0 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 13 Oct 2025
- **Updated:** 26 Feb 2026
- **Also known as:** GHSA-3p6w-gv5g-xjw9

## What is CVE-2025-11695?

CVE-2025-11695 is a high-severity vulnerability in MongoDB Rust Driver, published on 13 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

When tlsInsecure=False appears in a connection string, certificate validation is disabled.

This vulnerability affects MongoDB Rust Driver versions prior to v3.2.5

Weakness: CWE-295 (Improper Certificate Validation)

## Which versions are affected by CVE-2025-11695?

2 open source packages ship an affected version, including mongodb. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `mongodb` | crates.io | All versions | 3.2.5 |
| `mongodb` | crates.io | All versions | 3.2.5 |

Products: Mongodb Rust Driver.

## How do I fix CVE-2025-11695?

Upgrade mongodb to 3.2.5 or later.

## Is CVE-2025-11695 being exploited?

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

## Other vulnerabilities in MongoDB Rust Driver

- [CVE-2026-81526](https://insights.sbomify.com/CVE-2026-81526/): Cross-database write redirection via unvalidated dotted database name in bulk write namespaces (high 7.1)
- [CVE-2024-6382](https://insights.sbomify.com/CVE-2024-6382/): Adversarial unsanitized input may cause MongoDB Rust Driver to issue unintended commands. (medium 6.4)
- [CVE-2026-88024](https://insights.sbomify.com/CVE-2026-88024/): GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Rust Driver (medium 6.1)
- [CVE-2021-20332](https://insights.sbomify.com/CVE-2021-20332/): Exposure of Sensitive Information to an Unauthorized Actor in MongoDB Rust Driver (medium 4.2)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-11695 and fix it if it is affected.

What it is: CVE-2025-11695 is a high-severity vulnerability in MongoDB Rust Driver, published on 13 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2025-11695 in the wild and no public exploit code.

Affected packages and fixed versions:
- mongodb (crates.io): affected all versions; fixed in 3.2.5
- mongodb (crates.io): affected all versions; fixed in 3.2.5

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-2025-11695/ (Markdown: https://insights.sbomify.com/CVE-2025-11695/index.md)
```

## Sources

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

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