Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-29086

CVE-2026-29086: Hono Framework Cookie Injection Vulnerability

CVE-2026-29086 is a cookie injection vulnerability in Hono Web application framework that allows attackers to inject malicious cookie attributes through unvalidated semicolons and control characters. This article covers technical details, affected versions, impact, and mitigation steps.

Published: March 6, 2026

CVE-2026-29086 Overview

CVE-2026-29086 is an Input Validation Error vulnerability affecting Hono, a popular Web application framework that provides support for any JavaScript runtime. Prior to version 4.12.4, the setCookie() utility did not validate semicolons (;), carriage returns (\r), or newline characters (\n) in the domain and path options when constructing the Set-Cookie header. Because cookie attributes are delimited by semicolons, this could allow injection of additional cookie attributes if untrusted input was passed into these fields.

Critical Impact

Attackers can inject arbitrary cookie attributes through unsanitized domain and path parameters, potentially leading to session manipulation, cross-site scripting via cookie injection, or bypassing security controls like the Secure and HttpOnly flags.

Affected Products

  • Hono Web Framework versions prior to 4.12.4
  • Applications using setCookie() with user-controlled domain or path parameters
  • JavaScript runtime environments running vulnerable Hono versions (Node.js, Deno, Bun, Cloudflare Workers, etc.)

Discovery Timeline

  • 2026-03-04 - CVE CVE-2026-29086 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2026-29086

Vulnerability Analysis

This vulnerability exists in Hono's cookie handling utility, specifically within the setCookie() function. The function constructs Set-Cookie HTTP response headers by concatenating user-supplied values for cookie attributes including domain and path. The core issue is that the function failed to sanitize special delimiter characters before incorporating them into the header value.

The Set-Cookie header format uses semicolons to separate cookie attributes (e.g., name=value; Path=/; Domain=example.com; Secure). When an attacker can inject a semicolon into the domain or path parameter, they can terminate the current attribute and inject additional ones. Similarly, carriage return (\r) and newline (\n) characters can be used for HTTP response splitting attacks in certain configurations.

Root Cause

The root cause is improper input validation (CWE-1113) in the setCookie() utility function. The function trusted that domain and path parameters would contain only valid characters, without performing validation or sanitization of delimiter characters. This created an injection vector when applications passed user-controllable data into these parameters.

Attack Vector

The attack requires a network-accessible application using Hono that passes user input to the setCookie() function's domain or path options. An attacker can craft malicious input containing semicolons followed by additional cookie attributes.

For example, if an application allows users to specify a subdomain preference that gets passed to the domain parameter, an attacker could supply a value like example.com; Secure; HttpOnly=false; Path=/admin to inject additional cookie attributes. This could potentially:

  • Override security flags like Secure or HttpOnly
  • Expand the cookie's scope to unintended paths
  • Set arbitrary expiration dates
  • In combination with other vulnerabilities, facilitate session fixation attacks

The vulnerability requires user interaction as the victim must trigger the cookie-setting action. For detailed technical information, see the GitHub Security Advisory.

Detection Methods for CVE-2026-29086

Indicators of Compromise

  • Unusual or malformed Set-Cookie headers in HTTP responses containing multiple semicolons in domain or path values
  • Web application logs showing requests with semicolons, %3B, \r, \n, %0D, or %0A in parameters that influence cookie settings
  • Error logs indicating cookie parsing failures or malformed header warnings

Detection Strategies

  • Implement HTTP response header monitoring to detect anomalous Set-Cookie headers with unexpected attribute combinations
  • Deploy web application firewall (WAF) rules to block requests containing semicolons and newline characters in cookie-related parameters
  • Use static application security testing (SAST) tools to identify setCookie() calls that pass user input to domain or path parameters
  • Review application dependency manifests for Hono versions prior to 4.12.4

Monitoring Recommendations

  • Enable detailed HTTP response logging to capture full Set-Cookie header values for forensic analysis
  • Configure alerting for HTTP responses containing multiple consecutive cookie attributes that could indicate injection attempts
  • Monitor package management systems for outdated Hono dependencies across the application portfolio

How to Mitigate CVE-2026-29086

Immediate Actions Required

  • Upgrade Hono to version 4.12.4 or later immediately across all affected applications
  • Audit application code to identify any setCookie() calls that accept user input for domain or path parameters
  • Implement input validation at the application layer to reject semicolons, carriage returns, and newlines in cookie-related parameters
  • Review recent HTTP logs for evidence of exploitation attempts

Patch Information

The vulnerability has been patched in Hono version 4.12.4. The fix adds validation to reject semicolons (;), carriage returns (\r), and newline characters (\n) in the domain and path options of the setCookie() function. For technical details on the patch implementation, see the GitHub commit.

Workarounds

  • If immediate upgrade is not possible, implement a middleware layer that sanitizes or rejects semicolons, \r, and \n characters from any user input before it reaches setCookie() calls
  • Avoid passing user-controlled data to the domain and path parameters of setCookie() until the upgrade is complete
  • Use allowlists for domain and path values rather than accepting arbitrary user input
bash
# Upgrade Hono to patched version
npm update hono@4.12.4

# Or if using specific package managers
yarn upgrade hono@4.12.4
pnpm update hono@4.12.4

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechHono

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-1113
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-5pq2-9x2x-5p6w
  • Related CVEs
  • CVE-2026-39410: Hono Framework Auth Bypass Vulnerability

  • CVE-2026-39408: Hono Framework Path Traversal Vulnerability

  • CVE-2026-39406: Hono Node.js Auth Bypass Vulnerability

  • CVE-2026-39409: Hono Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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