The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-0672

CVE-2026-0672: HTTP Cookie Morsel XSS Vulnerability

CVE-2026-0672 is an XSS vulnerability in http.cookies.Morsel that enables attackers to inject HTTP headers through user-controlled cookie values. This article covers technical details, affected versions, and mitigation steps.

Published: January 23, 2026

CVE-2026-0672 Overview

CVE-2026-0672 is an HTTP Response Splitting vulnerability in Python's http.cookies.Morsel class. When using this module, user-controlled cookie values and parameters can allow injecting HTTP headers into messages. This vulnerability arises from insufficient validation of control characters within cookie names, values, and parameters, enabling attackers to manipulate HTTP responses.

Critical Impact

Attackers can inject arbitrary HTTP headers through malicious cookie values, potentially leading to cache poisoning, session hijacking, cross-site scripting (XSS), or other HTTP response manipulation attacks.

Affected Products

  • Python CPython (http.cookies module)

Discovery Timeline

  • 2026-01-20 - CVE CVE-2026-0672 published to NVD
  • 2026-01-20 - Last updated in NVD database

Technical Details for CVE-2026-0672

Vulnerability Analysis

This vulnerability is classified under CWE-93 (Improper Neutralization of CRLF Sequences), commonly known as HTTP Response Splitting. The http.cookies.Morsel class in Python failed to properly sanitize control characters in cookie names, values, and parameters. This oversight allows attackers to inject CRLF (Carriage Return Line Feed) sequences and other control characters into cookie data, which can then be interpreted as HTTP header delimiters when the cookie is serialized into an HTTP response.

The attack requires network access with low complexity, though it does require some preconditions to be present for successful exploitation. An authenticated attacker with low privileges can exploit this vulnerability without user interaction. While the vulnerability does not impact availability, it poses a low risk to confidentiality and a high risk to integrity, as attackers can manipulate HTTP responses.

Root Cause

The root cause lies in the insufficient input validation within the http.cookies module. Prior to the patch, the module accepted control characters (including newline characters like \012 which represents a line feed in octal notation) within cookie values. These control characters could be used to terminate HTTP headers prematurely and inject additional headers or content into the HTTP response stream.

Attack Vector

The attack vector is network-based. An attacker who can influence cookie values processed by a Python application using http.cookies.Morsel can inject control characters that break out of the cookie context. When the application generates HTTP responses containing these malicious cookies, the injected control characters are interpreted as HTTP protocol delimiters, allowing the attacker to:

  1. Inject additional HTTP headers
  2. Potentially inject response body content
  3. Perform cache poisoning attacks
  4. Enable cross-site scripting through header injection

The following code demonstrates the security patch that addresses this vulnerability:

python
 such trickeries do not confuse it.
 
    >>> C = cookies.SimpleCookie()
-   >>> C.load('keebler="E=everybody; L=\\"Loves\\"; fudge=\\012;";')
+   >>> C.load('keebler="E=everybody; L=\\"Loves\\"; fudge=;";')
    >>> print(C)
-   Set-Cookie: keebler="E=everybody; L=\"Loves\"; fudge=\012;"
+   Set-Cookie: keebler="E=everybody; L=\"Loves\"; fudge=;"
 
 Each element of the Cookie also supports all of the RFC 2109
 Cookie attributes.  Here's an example which sets the Path

Source: GitHub Commit Overview

The patch removes the ability to include control characters like \012 (line feed) in cookie values, preventing HTTP header injection.

Detection Methods for CVE-2026-0672

Indicators of Compromise

  • Unusual control characters or escape sequences (e.g., \012, \015, %0d, %0a) in cookie values within application logs
  • HTTP response anomalies showing unexpected headers following Set-Cookie directives
  • Web application firewall logs indicating CRLF injection attempts in cookie parameters

Detection Strategies

  • Deploy web application firewall rules to detect and block CRLF sequences in cookie values
  • Implement application-level logging to monitor for control characters in user-supplied cookie data
  • Use static code analysis tools to identify usage of http.cookies.Morsel with unsanitized user input
  • Enable HTTP response inspection to detect malformed or unexpected header structures

Monitoring Recommendations

  • Monitor web server access logs for requests containing encoded control characters (%0d%0a, %0a, %0d)
  • Implement real-time alerting for HTTP response splitting patterns in outbound traffic
  • Review application dependencies to track Python version and ensure patched versions are deployed

How to Mitigate CVE-2026-0672

Immediate Actions Required

  • Update Python to the latest patched version that includes the security fix for http.cookies
  • Review all code paths where user input is used to set cookie values and implement additional sanitization
  • Deploy web application firewall rules to block requests containing control characters in cookie-related parameters
  • Audit existing applications for potential exploitation of this vulnerability

Patch Information

The Python Security Team has released a patch that rejects all control characters within cookie names, values, and parameters. The fix is available in commit 95746b3a13a985787ef53b977129041971ed7f70. For detailed information about the patch, refer to the GitHub Pull Request Review and the Python Security Announcement Thread.

Workarounds

  • Implement input validation to strip or reject control characters from all user-supplied data before passing to http.cookies
  • Use a wrapper function to sanitize cookie values by removing characters outside the printable ASCII range
  • Consider using alternative cookie handling libraries that enforce strict validation
  • Apply network-level filtering to detect and block HTTP response splitting patterns
bash
# Example: Check Python version and update
python3 --version
# Update Python to the latest patched version
# For systems using pyenv:
pyenv install 3.x.x  # Install patched version
pyenv global 3.x.x   # Set as default

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechN/A

  • SeverityMEDIUM

  • CVSS Score6.0

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/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
  • GitHub Commit Overview

  • GitHub Issue Discussion

  • GitHub Pull Request Review

  • Python Security Announcement Thread
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE 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