# CVE-2026-47072: CRLF injection in WebSocket upgrade request in hackney

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:H/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: High; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.52% (percentile 37, 2026-11-26)
- **CWE:** CWE-93
- **Published:** 2026-05-25T14:00:47.852Z
- **Modified:** 2026-11-20T09:20:10.007Z

## Who should check

- Anyone running benoitc hackney \>= 2.0.0-beta.1, \< 4.0.1
- Anyone running benoitc hackney \>= 690cecaf236fba49526da404a5bc889a24367a3e, \< 52310ca807e7b48441ba0e9129171f535313fdd1

## Description

Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in benoitc hackney allows HTTP Request/Response Splitting.

The WebSocket upgrade code in src/hackney\_ws.erl copies the host, path, headers (ExtraHeaders), and protocols options from the caller-supplied opts map into the internal \#ws\_data{} record in init/1 and then splices them verbatim into the raw HTTP/1.1 upgrade request by binary concatenation in do\_handshake/1. No CRLF or NUL stripping is performed at any of these four injection sites. An attacker who controls any of these options — for example by forwarding URL components or header values from untrusted input into hackney\_ws:start\_link/1 — can inject arbitrary HTTP headers into the outbound WebSocket upgrade request, leading to header injection, credential spoofing toward the upstream server, log and cache poisoning, or request smuggling via intermediary proxies.

This issue affects hackney: from 2.0.0-beta.1 before 4.0.1.

## Affected and fixed versions

- benoitc hackney: \>= 2.0.0-beta.1, \< 4.0.1 (cvelist)
- benoitc hackney: \>= 690cecaf236fba49526da404a5bc889a24367a3e, \< 52310ca807e7b48441ba0e9129171f535313fdd1 (cvelist)

## Mitigation

- Upgrade hackney to 4.0.1 or later.
- Upgrade hackney to 52310ca807e7b48441ba0e9129171f535313fdd1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-47072. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-47072.md
Affected: benoitc hackney >= 2.0.0-beta.1, < 4.0.1; benoitc hackney >= 690cecaf236fba49526da404a5bc889a24367a3e, < 52310ca807e7b48441ba0e9129171f535313fdd1
Fixed in: benoitc hackney 4.0.1, benoitc hackney 52310ca807e7b48441ba0e9129171f535313fdd1

Steps:
1. Search this machine and project for benoitc hackney: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-47072 being exploited?

There is no confirmed exploitation: CVE-2026-47072 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-47072?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

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

benoitc hackney \>= 2.0.0-beta.1, \< 4.0.1; benoitc hackney \>= 690cecaf236fba49526da404a5bc889a24367a3e, \< 52310ca807e7b48441ba0e9129171f535313fdd1.

### Is there a fix for CVE-2026-47072?

Yes. Fixed in benoitc hackney 4.0.1, benoitc hackney 52310ca807e7b48441ba0e9129171f535313fdd1. Upgrade hackney to 4.0.1 or later. Upgrade hackney to 52310ca807e7b48441ba0e9129171f535313fdd1 or later.

### How do I check if I'm affected by CVE-2026-47072?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/benoitc/hackney/security/advisories/GHSA-f9vr-g2g2-x9fg>
- patch: <https://cna.erlef.org/cves/CVE-2026-47072.html>
- patch: <https://osv.dev/vulnerability/EEF-CVE-2026-47072>
- patch: <https://github.com/benoitc/hackney/commit/690cecaf236fba49526da404a5bc889a24367a3e>
- patch: <https://github.com/benoitc/hackney/commit/52310ca807e7b48441ba0e9129171f535313fdd1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-47072>

HTML: <https://flawdb.com/CVE-2026-47072> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-47072>
