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-47069

CVE-2026-47069: Benoitc Hackney CRLF Injection Vulnerability

CVE-2026-47069 is a CRLF injection flaw in Benoitc Hackney that enables HTTP response splitting attacks through malicious cookie headers. This article covers the technical details, affected versions, and mitigation.

Published: May 28, 2026

CVE-2026-47069 Overview

CVE-2026-47069 is a Carriage Return Line Feed (CRLF) injection vulnerability in benoitc/hackney, a widely used HTTP client library for Erlang. The flaw exists in the hackney_cookie:setcookie/3 function in src/hackney_cookie.erl. While the function validates Name and Value arguments against CRLF and control characters, it concatenates the domain and path options verbatim into the output iolist without equivalent checks. An attacker who controls either option can inject literal CRLF sequences and arbitrary Set-Cookie headers, enabling HTTP Response Splitting [CWE-93]. The issue affects hackney versions from 0.9.0 before 4.0.1.

Critical Impact

An attacker controlling a request-derived Host header or path forwarded as the cookie domain or path can inject additional Set-Cookie headers into the HTTP response.

Affected Products

  • benoitc hackney from 0.9.0 before 4.0.1
  • Erlang applications using hackney for HTTP client cookie handling
  • Downstream libraries that propagate request-derived Host headers or paths to hackney cookie options

Discovery Timeline

  • 2026-05-25 - CVE-2026-47069 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-47069

Vulnerability Analysis

The vulnerability resides in hackney_cookie:setcookie/3, the function responsible for serializing cookie attributes into a Set-Cookie header string. The function applies CRLF and control-character validation to the cookie Name and Value, but treats the domain and path options as trusted iolist fragments. The serializer concatenates them directly into the output as ; Domain=<Domain> and ; Path=<Path>. Because these option values can originate from request-derived data such as the inbound Host header or request path, an attacker can supply bytes including \r, \n, or ; to terminate the current header and append additional Set-Cookie attributes or unrelated headers. The result is HTTP Response Splitting, where the attacker injects content into the response stream produced by downstream code that forwards the constructed header.

Root Cause

The root cause is inconsistent input neutralization. Only Name and Value are scanned for line-terminating and control bytes; domain and path are concatenated without sanitization. Erlang's iolist handling preserves the attacker-supplied bytes intact, so any CRLF sequence survives serialization.

Attack Vector

Exploitation requires that an upstream application forward attacker-controlled input — typically a Host header or request path — into the domain or path cookie options passed to hackney_cookie:setcookie/3. The attacker supplies a value containing \r\n followed by an injected Set-Cookie header or other HTTP header content. The injected bytes appear in the constructed response, enabling cache poisoning, session fixation via attacker-controlled cookies, or response manipulation.

text
// Patch excerpt from src/hackney_cookie.erl (GHSA-mp55-p8c9-rfw2)
               end,
   DomainBin = case lists:keyfind(domain, 1, Opts) of
                 false -> <<>>;
-                {_, Domain} -> [<<"; Domain=">>, Domain]
+                {_, Domain} ->
+                  %% GHSA-mp55: Name/Value are guarded above; Domain and
+                  %% Path must reject the same line-terminating bytes (and
+                  %% ';', which would start a new attribute) so a
+                  %% request-derived domain/path cannot inject a second
+                  %% Set-Cookie header.
+                  nomatch = binary:match(iolist_to_binary(Domain),
+                                         [<<$;>>, <<$\s>>, <<$\t>>, <<$\r>>,
+                                          <<$\n>>, <<$\013>>, <<$\014>>, <<0>>]),
+                  [<<"; Domain=">>, Domain]
               end,
   PathBin = case lists:keyfind(path, 1, Opts) of
               false -> <<>>;
-              {_, Path} -> [<<"; Path=">>, Path]
+              {_, Path} ->
+                nomatch = binary:match(iolist_to_binary(Path),
+                                       [<<$;>>, <<$\r>>, <<$\n>>,
+                                        <<$\013>>, <<$\014>>, <<0>>]),
+                [<<"; Path=">>, Path]
             end,

Source: GitHub Commit 8e02b99. This patch enforces a binary:match check on both Domain and Path, rejecting ;, whitespace, CR, LF, vertical tab, form feed, and NUL bytes before concatenating them into the output.

Detection Methods for CVE-2026-47069

Indicators of Compromise

  • HTTP responses containing multiple Set-Cookie headers where only one was expected, particularly with Domain or Path attributes carrying unusual byte sequences.
  • Application logs showing Host header or request path values containing \r, \n, or ; characters being passed to hackney cookie functions.
  • Web Application Firewall (WAF) alerts on inbound requests with encoded CRLF sequences (%0d%0a) in Host headers or paths.

Detection Strategies

  • Inventory Erlang projects and dependency manifests (rebar.config, mix.exs) for hackney versions below 4.0.1.
  • Add static analysis rules to flag calls to hackney_cookie:setcookie/3 where domain or path options derive from untrusted request data.
  • Inspect outbound HTTP responses for malformed or duplicated Set-Cookie headers using a reverse proxy or response-inspection middleware.

Monitoring Recommendations

  • Log and alert on inbound Host headers or request paths containing control bytes or semicolons before they reach application logic.
  • Monitor response headers for Set-Cookie entries whose Domain or Path values include whitespace, semicolons, or non-printable characters.
  • Correlate response-splitting indicators with cache poisoning patterns at upstream CDN or proxy layers.

How to Mitigate CVE-2026-47069

Immediate Actions Required

  • Upgrade hackney to version 4.0.1 or later in all Erlang and Elixir applications that include it directly or transitively.
  • Audit application code paths that pass request-derived values into hackney cookie domain or path options and add input validation upstream.
  • Reject or sanitize inbound Host headers and request paths containing CR, LF, NUL, or semicolon bytes at the ingress layer.

Patch Information

The fix is committed in 8e02b99c28aea1b3fa2ddc0e66f51fe5bb0ac540 and shipped in hackney 4.0.1. Details are published in GitHub Security Advisory GHSA-mp55-p8c9-rfw2, the CNA CVE-2026-47069 Record, and the OSV Vulnerability Report EEF-CVE-2026-47069.

Workarounds

  • Validate domain and path option values for CRLF, NUL, whitespace, and ; before invoking hackney cookie functions if immediate upgrade is not possible.
  • Strip or reject CRLF sequences from request-derived inputs at the reverse proxy or WAF tier.
  • Avoid forwarding the raw inbound Host header or request path into outbound cookie attributes; use a validated allowlist of domains and paths instead.
bash
# Update hackney in a rebar3 project
rebar3 upgrade hackney

# Or pin the fixed version in rebar.config
# {deps, [{hackney, "4.0.1"}]}.

# For Elixir projects using Mix
mix deps.update hackney
# Or pin in mix.exs: {:hackney, "~> 4.0.1"}

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechHackney

  • SeverityLOW

  • CVSS Score2.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/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
  • Vendor Resources
  • CNA CVE-2026-47069 Record

  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-mp55-p8c9-rfw2

  • OSV Vulnerability Report EEF-CVE-2026-47069
  • Related CVEs
  • CVE-2026-47072: 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