{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-47072",
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "state": "PUBLISHED",
        "assignerShortName": "EEF",
        "dateReserved": "2026-05-18T17:28:08.322Z",
        "datePublished": "2026-05-25T14:00:47.852Z",
        "dateUpdated": "2026-11-20T08:07:07.016Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://repo.hex.pm",
                    "cpes": [
                        "cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "hackney_ws"
                    ],
                    "packageName": "hackney",
                    "packageURL": "pkg:hex/hackney",
                    "product": "hackney",
                    "programFiles": [
                        "src/hackney_ws.erl"
                    ],
                    "programRoutines": [
                        {
                            "name": "hackney_ws:do_handshake/1"
                        },
                        {
                            "name": "hackney_ws:init/1"
                        }
                    ],
                    "repo": "https://github.com/benoitc/hackney",
                    "vendor": "benoitc",
                    "versions": [
                        {
                            "lessThan": "4.0.1",
                            "status": "affected",
                            "version": "2.0.0-beta.1",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "collectionURL": "https://github.com",
                    "cpes": [
                        "cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "hackney_ws"
                    ],
                    "packageName": "benoitc/hackney",
                    "packageURL": "pkg:github/benoitc/hackney",
                    "product": "hackney",
                    "programFiles": [
                        "src/hackney_ws.erl"
                    ],
                    "programRoutines": [
                        {
                            "name": "hackney_ws:do_handshake/1"
                        },
                        {
                            "name": "hackney_ws:init/1"
                        }
                    ],
                    "repo": "https://github.com/benoitc/hackney",
                    "vendor": "benoitc",
                    "versions": [
                        {
                            "lessThan": "52310ca807e7b48441ba0e9129171f535313fdd1",
                            "status": "affected",
                            "version": "690cecaf236fba49526da404a5bc889a24367a3e",
                            "versionType": "git"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "cpeMatch": [
                                {
                                    "criteria": "cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "4.0.1",
                                    "versionStartIncluding": "2.0.0-beta.1",
                                    "vulnerable": true
                                }
                            ],
                            "negate": false,
                            "operator": "OR"
                        }
                    ],
                    "operator": "AND"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Peter Ullrich"
                },
                {
                    "lang": "en",
                    "type": "analyst",
                    "value": "Jonatan Männchen / EEF"
                },
                {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "Benoit Chesneau"
                }
            ],
            "datePublic": "2026-05-25T14:00:47.000Z",
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in benoitc hackney allows HTTP Request/Response Splitting.</p>\n<p>The WebSocket upgrade code in <code>src/hackney_ws.erl</code> copies the <code>host</code>, <code>path</code>, <code>headers</code> (ExtraHeaders), and <code>protocols</code> options from the caller-supplied opts map into the internal <code>#ws_data{}</code> record in <code>init/1</code> and then splices them verbatim into the raw HTTP/1.1 upgrade request by binary concatenation in <code>do_handshake/1</code>. 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 <code>hackney_ws:start_link/1</code> — 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.</p>\n<p>This issue affects hackney: from 2.0.0-beta.1 before 4.0.1.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in benoitc hackney allows HTTP Request/Response Splitting.\n\nThe 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.\n\nThis issue affects hackney: from 2.0.0-beta.1 before 4.0.1."
                        }
                    ],
                    "value": "Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in benoitc hackney allows HTTP Request/Response Splitting.\n\nThe 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.\n\nThis issue affects hackney: from 2.0.0-beta.1 before 4.0.1."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-33",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-33 HTTP Request Smuggling"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "attackVector": "NETWORK",
                        "baseScore": 6.9,
                        "baseSeverity": "MEDIUM",
                        "privilegesRequired": "NONE",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "HIGH",
                        "userInteraction": "NONE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "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",
                        "version": "4.0",
                        "vulnAvailabilityImpact": "NONE",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "LOW",
                        "vulnerabilityResponseEffort": "NOT_DEFINED"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-93",
                            "description": "CWE-93 Improper Neutralization of CRLF Sequences",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
                "shortName": "EEF",
                "dateUpdated": "2026-11-20T08:07:07.016Z"
            },
            "references": [
                {
                    "name": "CRLF / header injection in WebSocket upgrade request",
                    "tags": [
                        "vendor-advisory",
                        "related"
                    ],
                    "url": "https://github.com/benoitc/hackney/security/advisories/GHSA-f9vr-g2g2-x9fg"
                },
                {
                    "name": "EEF CNA record for CVE-2026-47072",
                    "tags": [
                        "related"
                    ],
                    "url": "https://cna.erlef.org/cves/CVE-2026-47072.html"
                },
                {
                    "name": "OSV record EEF-CVE-2026-47072",
                    "tags": [
                        "related"
                    ],
                    "url": "https://osv.dev/vulnerability/EEF-CVE-2026-47072"
                },
                {
                    "name": "Introducing commit 690ceca in benoitc/hackney",
                    "tags": [
                        "related"
                    ],
                    "url": "https://github.com/benoitc/hackney/commit/690cecaf236fba49526da404a5bc889a24367a3e"
                },
                {
                    "name": "Fix commit 52310ca in benoitc/hackney",
                    "tags": [
                        "patch"
                    ],
                    "url": "https://github.com/benoitc/hackney/commit/52310ca807e7b48441ba0e9129171f535313fdd1"
                }
            ],
            "source": {
                "discovery": "EXTERNAL"
            },
            "title": "CRLF injection in WebSocket upgrade request in hackney"
        },
        "adp": [
            {
                "references": [
                    {
                        "url": "https://github.com/benoitc/hackney/security/advisories/GHSA-f9vr-g2g2-x9fg",
                        "tags": [
                            "exploit"
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-05-26T15:46:12.092004Z",
                                "id": "CVE-2026-47072",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-05-26T15:46:14.885Z"
                }
            }
        ]
    }
}