# CVE-2025-27820: Apache HttpComponents: PSL (Public Suffix List) validation bypass

> Attackers can bypass domain validation checks in Apache HttpClient, potentially compromising cookie management and host name verification.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/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:** 24 Apr 2025
- **Updated:** 4 Jun 2025
- **Also known as:** GHSA-73m2-qfq3-56cx, MINI-8pc5-2xv5-mjxm, UBUNTU-CVE-2025-27820

## What is CVE-2025-27820?

CVE-2025-27820 is a high-severity vulnerability in Apache HttpComponents, published on 24 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A bug in PSL validation logic in Apache HttpClient 5.4.x disables domain checks, affecting cookie management and host name verification. Discovered by the Apache HttpClient team. Fixed in the 5.4.3 release

Weakness: CWE-295 (Improper Certificate Validation)

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

2 open source packages ship an affected version, including org.apache.httpcomponents.client5:httpclient5. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.apache.httpcomponents.client5:httpclient5` | Maven | From 5.4-alpha1 | 5.4.3 |
| `org.apache.httpcomponents.client5:httpclient5` | Maven | From 5.4-alpha1 | 5.4.3 |

Products: Apache Httpclient, Netapp Ontap Tools.

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

Upgrade org.apache.httpcomponents.client5:httpclient5 to 5.4.3 or later.

## Is CVE-2025-27820 being exploited?

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

## Other vulnerabilities in Apache HttpComponents

- [CVE-2013-4366](https://insights.sbomify.com/CVE-2013-4366/): Hostname verification in Apache HttpClient 4.3 was disabled by default (critical 9.8)
- [CVE-2026-71290](https://insights.sbomify.com/CVE-2026-71290/): Apache HttpComponents Client: TLS hostname verification silently disabled on the async transport (default config, MITM) (critical 9.1)
- [CVE-2026-40542](https://insights.sbomify.com/CVE-2026-40542/): Apache HttpClient accepts SCRAM-SHA-256 authentication without proper mutual authentication verification (high 7.3)
- [CVE-2012-5783](https://insights.sbomify.com/CVE-2012-5783/): Improper Certificate Validation in Apache Commons HttpClient (medium 5.8)
- [CVE-2026-64607](https://insights.sbomify.com/CVE-2026-64607/): Apache HttpComponents Client: Connection Leak on Content-Encoding Decode Error Leads to Pool Exhaustion DoS (medium 5.3)

## Fix prompt for AI coding agents

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

What it is: CVE-2025-27820 is a high-severity vulnerability in Apache HttpComponents, published on 24 Apr 2025. 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-2025-27820 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.apache.httpcomponents.client5:httpclient5 (Maven): affected from 5.4-alpha1; fixed in 5.4.3
- org.apache.httpcomponents.client5:httpclient5 (Maven): affected from 5.4-alpha1; fixed in 5.4.3

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

## Sources

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

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