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

CVE-2026-40471: Hackage Server CSRF Vulnerability

CVE-2026-40471 is a Cross-Site Request Forgery flaw in hackage-server that allows attackers to perform unauthorized actions using victim credentials. This article covers technical details, affected versions, and mitigation.

Published: April 23, 2026

CVE-2026-40471 Overview

CVE-2026-40471 is a Cross-Site Request Forgery (CSRF) vulnerability affecting hackage-server, the server software that powers the Haskell package repository. The vulnerability stems from a complete lack of CSRF protection across the server's endpoints, allowing malicious scripts on foreign websites to trigger authenticated requests to hackage-server on behalf of unsuspecting users.

This flaw enables attackers to abuse latent credentials to perform privileged actions such as uploading packages or executing administrative functions. Even unauthenticated actions are vulnerable to abuse, including the creation of new user accounts without user consent.

Critical Impact

Attackers can leverage this vulnerability to upload malicious packages to the Haskell package repository, perform administrative actions on behalf of authenticated users, or create rogue user accounts, potentially leading to supply chain attacks affecting the entire Haskell ecosystem.

Affected Products

  • hackage-server (all versions prior to patch)

Discovery Timeline

  • 2026-04-23 - CVE CVE-2026-40471 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2026-40471

Vulnerability Analysis

This vulnerability is classified under CWE-352 (Cross-Site Request Forgery). The fundamental issue lies in hackage-server's failure to implement CSRF tokens or other anti-forgery mechanisms across its web endpoints. When authenticated users visit a malicious website while having an active session with hackage-server, the attacker's site can craft and submit requests that the server processes as legitimate user actions.

The network-based attack vector requires minimal complexity—the attacker simply needs to lure a victim to a page containing the malicious script. The scope is changed, meaning the vulnerability can impact resources beyond the vulnerable component itself, potentially affecting the broader Haskell package ecosystem through unauthorized package uploads.

Root Cause

The root cause is the absence of CSRF protection mechanisms throughout hackage-server's implementation. Modern web applications typically employ anti-CSRF tokens that are validated on state-changing requests to ensure the request originated from the application itself. Hackage-server's endpoints lacked these protections entirely, trusting any request that contained valid session cookies regardless of origin.

Attack Vector

The attack leverages standard CSRF techniques where an attacker hosts a malicious webpage containing hidden forms or JavaScript that automatically submits requests to hackage-server endpoints. When an authenticated user visits this malicious page, their browser automatically includes session cookies with the forged request, making it appear legitimate to the server.

Attack scenarios include:

  • Package Upload Abuse: An attacker could craft a form that uploads a malicious package to hackage, potentially poisoning the supply chain for Haskell developers
  • Administrative Action Hijacking: Authenticated administrators could unknowingly execute privileged operations
  • User Account Creation: Attackers could create numerous fake accounts for spam or reputation manipulation purposes

Since no code examples are available from verified sources, refer to the OSV Vulnerability Report HSEC-2026-0002 for additional technical details on the vulnerability mechanism and exploitation scenarios.

Detection Methods for CVE-2026-40471

Indicators of Compromise

  • Unexpected package uploads or modifications in hackage-server logs not initiated by legitimate users
  • Unusual administrative actions occurring without corresponding user activity
  • Bulk creation of user accounts from suspicious or unexpected referrer sources
  • Cross-origin requests to state-changing endpoints visible in server access logs

Detection Strategies

  • Review web server access logs for requests to state-changing endpoints with suspicious Referer headers pointing to external domains
  • Monitor for anomalous package upload patterns or administrative actions that don't correlate with expected user behavior
  • Implement alerting on sudden spikes in new user account registrations
  • Audit authentication logs for session activity that coincides with requests from unexpected sources

Monitoring Recommendations

  • Enable detailed logging of all state-changing requests including Origin and Referer headers
  • Implement web application firewall (WAF) rules to detect and block requests with mismatched origin headers
  • Set up alerts for package uploads or modifications from users who haven't recently logged in through the standard interface
  • Regularly review access patterns for administrative endpoints

How to Mitigate CVE-2026-40471

Immediate Actions Required

  • Update hackage-server to the latest patched version that includes CSRF protection
  • Review recent package uploads and administrative actions for signs of unauthorized activity
  • Audit newly created user accounts for suspicious patterns
  • Consider temporarily restricting access to critical endpoints while patching is completed

Patch Information

Refer to the OSV Vulnerability Report HSEC-2026-0002 for specific patch information and updated versions. Administrators should update to the latest version of hackage-server that includes CSRF token validation on all state-changing endpoints.

Workarounds

  • Implement a reverse proxy or WAF rule that validates Origin and Referer headers match expected values before forwarding requests
  • Restrict access to administrative endpoints to specific IP addresses or VPN connections
  • Require re-authentication for sensitive operations like package uploads
  • Educate users about the risks of maintaining active sessions while browsing untrusted websites
bash
# Example nginx configuration to restrict based on origin
# Add to server block protecting hackage-server
location /upload {
    if ($http_origin !~* "^https://hackage\.example\.com$") {
        return 403;
    }
    proxy_pass http://hackage-backend;
}

location /admin {
    # Restrict admin endpoints to internal network
    allow 10.0.0.0/8;
    deny all;
    proxy_pass http://hackage-backend;
}

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

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechHackage Server

  • SeverityCRITICAL

  • CVSS Score9.6

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityLow
  • CWE References
  • CWE-352
  • Technical References
  • OSV Vulnerability Report HSEC-2026-0002
  • Related CVEs
  • CVE-2026-40472: Hackage Server XSS 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