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-2024-10086

CVE-2024-10086: HashiCorp Consul XSS Vulnerability

CVE-2024-10086 is a reflected XSS vulnerability in HashiCorp Consul caused by missing Content-Type headers that allow attackers to execute malicious scripts. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-10086 Overview

A reflected Cross-Site Scripting (XSS) vulnerability has been identified in HashiCorp Consul and Consul Enterprise. The vulnerability arises from the server response not explicitly setting a Content-Type HTTP header, which allows user-provided inputs to be misinterpreted by browsers and leads to reflected XSS attacks. This flaw could enable attackers to execute arbitrary JavaScript code in the context of a victim's browser session when they interact with crafted malicious links.

Critical Impact

Attackers can exploit this vulnerability to execute malicious scripts in users' browsers, potentially leading to session hijacking, credential theft, or unauthorized actions performed on behalf of authenticated users within Consul environments.

Affected Products

  • HashiCorp Consul (Community Edition)
  • HashiCorp Consul Enterprise
  • NetApp products utilizing HashiCorp Consul (see NetApp Security Advisory)

Discovery Timeline

  • October 30, 2024 - CVE-2024-10086 published to NVD
  • January 10, 2025 - Last updated in NVD database

Technical Details for CVE-2024-10086

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The root issue lies in how the Consul server handles HTTP responses during error conditions.

When the Consul server returns error responses, it fails to explicitly set the Content-Type HTTP header. This omission allows browsers to perform MIME type sniffing, potentially interpreting user-controlled input as executable content such as HTML or JavaScript. In certain error scenarios where user input is reflected in the response body, this behavior can be exploited to execute arbitrary scripts.

The network-based attack vector requires user interaction, as victims must click on or navigate to a maliciously crafted URL. The vulnerability can affect resources beyond the scope of the vulnerable component, potentially impacting other applications sharing the same browser session or domain trust relationships.

Root Cause

The vulnerability stems from insufficient HTTP response header configuration in the Consul server. Specifically, the application does not set an explicit Content-Type header (such as text/plain or application/json) when returning error responses. Without this header, browsers fall back to content sniffing behavior defined in their MIME Sniffing algorithms, which can incorrectly interpret text responses containing HTML-like content as executable HTML/JavaScript.

Attack Vector

The attack requires an attacker to craft a malicious URL containing XSS payload that targets a Consul endpoint which reflects user input in error messages. When a victim clicks the link, the Consul server returns an error response without a proper Content-Type header. The browser's MIME sniffing interprets the response as HTML, executing the embedded malicious JavaScript in the context of the victim's session.

The vulnerability is exploited through network requests and requires the victim to interact with the malicious link, making it a reflected XSS attack scenario. Successful exploitation can lead to limited confidentiality and integrity impacts, allowing attackers to access session tokens, modify displayed content, or perform actions as the authenticated user.

Detection Methods for CVE-2024-10086

Indicators of Compromise

  • Unusual HTTP requests to Consul endpoints containing encoded JavaScript payloads or HTML entities
  • Web server logs showing requests with suspicious URL parameters containing <script> tags or event handlers
  • Reports from users about unexpected browser behavior or pop-ups when accessing Consul-related URLs

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing common XSS patterns targeting Consul endpoints
  • Monitor Consul access logs for requests with URL-encoded script tags (%3Cscript%3E) or JavaScript event handlers (onerror, onload)
  • Deploy Content Security Policy (CSP) headers at the reverse proxy or load balancer level to mitigate XSS execution even if injection occurs
  • Enable SentinelOne Singularity XDR for endpoint-level detection of post-exploitation activities resulting from XSS attacks

Monitoring Recommendations

  • Review Consul server access logs regularly for anomalous request patterns, particularly those with unusual query parameters
  • Monitor for new or unexpected JavaScript execution contexts within browser sessions interacting with Consul
  • Implement network traffic analysis to identify potential XSS exploitation attempts targeting Consul services

How to Mitigate CVE-2024-10086

Immediate Actions Required

  • Upgrade HashiCorp Consul and Consul Enterprise to patched versions as specified in the HashiCorp Security Advisory
  • Implement reverse proxy or load balancer rules to add explicit Content-Type headers to all Consul responses
  • Restrict direct access to Consul UI and API endpoints, requiring authentication and limiting exposure to trusted networks only
  • Deploy Content Security Policy headers to prevent inline script execution as a defense-in-depth measure

Patch Information

HashiCorp has released security updates to address this vulnerability. Administrators should consult the official HashiCorp Security Advisory HCSEC-2024-24 for specific version information and upgrade instructions. Organizations using NetApp products that incorporate Consul should also review the NetApp Security Advisory NTAP-20250110-0006 for relevant guidance.

Workarounds

  • Deploy a reverse proxy (such as NGINX or HAProxy) in front of Consul that enforces Content-Type: application/json or Content-Type: text/plain headers on all responses
  • Implement strict Content Security Policy headers (Content-Security-Policy: default-src 'self') at the network edge to prevent inline script execution
  • Restrict Consul UI and API access to authenticated users only and limit network exposure through firewall rules
bash
# Example NGINX configuration to add Content-Type header
# Add to location block handling Consul traffic
location /consul/ {
    proxy_pass http://consul-backend:8500/;
    proxy_hide_header Content-Type;
    add_header Content-Type "application/json" always;
    add_header X-Content-Type-Options "nosniff" always;
    add_header Content-Security-Policy "default-src 'self'" always;
}

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechHashicorp Consul

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.70%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • NetApp Security Advisory NTAP-20250110-0006
  • Vendor Resources
  • HashiCorp Security Advisory
  • Related CVEs
  • CVE-2021-41803: HashiCorp Consul Auth Bypass Vulnerability

  • CVE-2021-37219: HashiCorp Consul Privilege Escalation Flaw
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