A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-47072

CVE-2026-47072: Hackney CRLF Injection Vulnerability

CVE-2026-47072 is a CRLF injection flaw in hackney's WebSocket upgrade code that allows HTTP request/response splitting and header injection attacks. This post covers technical details, affected versions, and mitigation.

Published: May 28, 2026

CVE-2026-47072 Overview

CVE-2026-47072 is a Carriage Return Line Feed (CRLF) injection vulnerability in the benoitc/hackney Erlang HTTP client library. The flaw exists in the WebSocket upgrade code path in src/hackney_ws.erl, where caller-supplied options including host, path, headers, and protocols are concatenated directly into the raw HTTP/1.1 upgrade request without CRLF or NUL stripping. An attacker who controls any of these options can inject arbitrary HTTP headers into the outbound WebSocket upgrade request. The issue affects hackney from version 2.0.0 before 4.0.1 and is tracked under CWE-93.

Critical Impact

Successful exploitation enables HTTP request/response splitting, credential spoofing toward upstream servers, log and cache poisoning, and request smuggling through intermediary proxies.

Affected Products

  • benoitc hackney 2.0.0 through 4.0.0
  • Erlang applications using hackney_ws:start_link/1 with untrusted input
  • Downstream libraries depending on hackney WebSocket client functionality

Discovery Timeline

  • 2026-05-25 - CVE CVE-2026-47072 published to NVD
  • 2026-05-26 - Last updated in NVD database

Technical Details for CVE-2026-47072

Vulnerability Analysis

The hackney library is a widely used HTTP client for Erlang and Elixir applications. The WebSocket upgrade implementation in src/hackney_ws.erl constructs the HTTP/1.1 upgrade request by binary concatenation. The init/1 function copies the host, path, ExtraHeaders, and protocols values from the caller-supplied options map into the internal #ws_data{} record. The do_handshake/1 function then splices those values verbatim into the outgoing request bytes.

No sanitization layer rejects or escapes embedded \r\n or \\x00 bytes before the request is sent. As a result, any of the four fields can carry attacker-controlled line terminators that terminate the current header and start new ones.

Root Cause

The root cause is missing input neutralization at four injection sites in the WebSocket handshake builder. The library trusts that caller-supplied option values are syntactically safe for direct use in an HTTP message. Applications that forward URL components or header values from untrusted sources into hackney_ws:start_link/1 inherit this trust failure.

Attack Vector

An attacker who influences any of the four controllable fields embeds CRLF sequences into the value. Those sequences terminate the legitimate header line and inject arbitrary headers, an empty line, or even a complete second request body into the TCP stream. Downstream effects depend on the topology: a vulnerable upstream WebSocket server may accept spoofed authentication headers, an intermediary proxy may desynchronize and route smuggled requests, and cache or log infrastructure may record poisoned entries. The fix in commit 52310ca807e7b48441ba0e9129171f535313fdd1 adds CRLF and NUL validation to reject malicious option values before transmission.

Detection Methods for CVE-2026-47072

Indicators of Compromise

  • Outbound WebSocket upgrade requests containing unexpected header lines or duplicate Host, Authorization, or Cookie headers
  • Proxy or upstream server logs showing requests with embedded %0d%0a or raw CRLF sequences in URL or header fields
  • Anomalous cache entries keyed on URLs that contain encoded line terminators

Detection Strategies

  • Inventory all Erlang and Elixir applications and resolve the hackney dependency version through rebar.lock or mix.lock to flag versions in the 2.0.0 to 4.0.0 range
  • Perform static analysis on call sites of hackney_ws:start_link/1 and hackney:request/5 to identify flows where user input reaches host, path, headers, or protocols options
  • Inspect outbound HTTP traffic for upgrade requests with multiple header occurrences or non-printable byte sequences

Monitoring Recommendations

  • Enable structured logging on reverse proxies and WAFs to capture raw request lines and flag CRLF artifacts in client requests
  • Alert on WebSocket connections that present headers inconsistent with the configured application client profile
  • Correlate authentication anomalies on upstream services with the timing of WebSocket handshake activity

How to Mitigate CVE-2026-47072

Immediate Actions Required

  • Upgrade hackney to version 4.0.1 or later across all Erlang and Elixir services
  • Audit application code that constructs WebSocket clients to ensure host, path, headers, and protocols are never sourced directly from untrusted input
  • Rebuild and redeploy release artifacts to ensure the patched dependency is loaded at runtime

Patch Information

The fix is published in hackney 4.0.1. The upstream commit 52310ca807e7b48441ba0e9129171f535313fdd1 adds CRLF and NUL validation to the WebSocket upgrade path. See the GitHub Security Advisory GHSA-f9vr-g2g2-x9fg and the CNA report for full coordination details.

Workarounds

  • Validate and reject any caller-supplied option value containing \r, \n, or \\x00 before invoking hackney_ws:start_link/1
  • Constrain WebSocket client options to allow-listed values when possible rather than passing through external data
  • Place an egress proxy in front of hackney clients that normalizes outbound HTTP headers and strips CRLF sequences
bash
# Example dependency pin for rebar3
{deps, [
    {hackney, "4.0.1"}
]}.

# Example dependency pin for Mix (Elixir)
defp deps do
  [
    {:hackney, "~> 4.0.1"}
  ]
end

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechHackney

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-93
  • Technical References
  • CNA CVE-2026-47072 Report

  • GitHub Commit Change

  • GitHub Security Advisory GHSA-f9vr-g2g2-x9fg

  • OSV Vulnerability EEF-CVE-2026-47072
  • Related CVEs
  • CVE-2026-47069: Benoitc Hackney CRLF Injection Vulnerability

  • CVE-2026-47075: Hackney HTTP Request Splitting Vulnerability

  • CVE-2026-47070: Benoitc Hackney Information Disclosure Bug

  • CVE-2026-47066: Benoitc Hackney DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English