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
    • 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-24037

CVE-2026-24037: Horilla HRMS XSS Vulnerability

CVE-2026-24037 is a cross-site scripting flaw in Horilla HRMS that allows attackers to bypass XSS filters and steal CSRF tokens. This article covers the technical details, affected versions, impact, and mitigation.

Published: January 23, 2026

CVE-2026-24037 Overview

A Cross-Site Scripting (XSS) filter bypass vulnerability has been identified in Horilla, a free and open source Human Resource Management System (HRMS). In version 1.4.0, the has_xss() function attempts to block XSS attacks by matching input against a set of regex patterns. However, these regex patterns are incomplete and context-agnostic, making them trivial to bypass. Successful exploitation allows attackers to redirect users to malicious domains, execute external JavaScript, and steal CSRF tokens that can be leveraged to craft secondary CSRF attacks against administrators.

Critical Impact

Attackers can bypass XSS protections to redirect users to malicious sites, execute arbitrary JavaScript, and steal CSRF tokens to compromise administrator accounts.

Affected Products

  • Horilla HRMS version 1.4.0
  • Horilla HRMS versions prior to 1.5.0

Discovery Timeline

  • 2026-01-22 - CVE CVE-2026-24037 published to NVD
  • 2026-01-22 - Last updated in NVD database

Technical Details for CVE-2026-24037

Vulnerability Analysis

This vulnerability represents a classic case of insufficient input validation in web application security controls. The has_xss() function in Horilla HRMS was designed as a defensive measure against Cross-Site Scripting attacks, but its implementation relies on pattern matching with incomplete regular expressions.

The fundamental flaw lies in the context-agnostic nature of the regex patterns used. XSS attacks can manifest in numerous contexts within HTML documents—within attribute values, script tags, event handlers, URLs, and CSS—each requiring different encoding and escaping strategies. A regex-based approach that doesn't account for these different contexts will inevitably leave gaps that attackers can exploit.

When successfully exploited, this vulnerability enables three primary attack scenarios: user redirection to attacker-controlled domains for phishing or malware distribution, execution of external JavaScript for data exfiltration or session hijacking, and theft of CSRF tokens that can be weaponized for follow-on attacks targeting administrative functions.

Root Cause

The root cause is the reliance on incomplete, context-agnostic regex patterns in the has_xss() function for XSS prevention. This blocklist-based approach fails to account for the myriad ways XSS payloads can be encoded, obfuscated, or structured to evade pattern matching while still executing in the browser. Proper XSS prevention requires context-aware output encoding and Content Security Policy (CSP) implementation rather than input filtering alone.

Attack Vector

The attack is network-based and requires user interaction. An attacker with high privileges can craft malicious input that bypasses the regex-based XSS filter. When a victim user views content containing the payload, the malicious JavaScript executes in their browser context. The changed scope (S:C in CVSS) indicates that the vulnerability in Horilla can impact resources beyond its security scope, potentially affecting user browsers and enabling attacks on other web applications through stolen credentials or session tokens.

Since no verified code examples are available, the specific bypass techniques are documented in the GitHub Security Advisory GHSA-rqw5-fjm4-rgvm. Common bypass techniques for regex-based XSS filters include case manipulation, HTML entity encoding, Unicode encoding, and breaking up keywords with null bytes or comments.

Detection Methods for CVE-2026-24037

Indicators of Compromise

  • Unusual JavaScript execution or redirect behaviors reported by users accessing the HRMS
  • Web application logs showing requests with encoded or obfuscated script payloads
  • Unexpected CSRF token exfiltration attempts to external domains
  • Browser console errors indicating blocked or attempted XSS execution (if CSP is partially implemented)

Detection Strategies

  • Deploy web application firewall (WAF) rules to detect common XSS bypass patterns and encoded payloads
  • Monitor HTTP request logs for suspicious patterns in user-controllable input fields
  • Implement Content Security Policy (CSP) with report-uri to receive notifications of policy violations
  • Review application logs for anomalous redirect patterns or external JavaScript references

Monitoring Recommendations

  • Enable detailed logging for all user input processing in the Horilla application
  • Set up alerts for CSP violation reports indicating attempted script execution
  • Monitor network traffic for connections to unknown external domains from user sessions
  • Audit administrative actions for signs of CSRF-based attacks following token theft

How to Mitigate CVE-2026-24037

Immediate Actions Required

  • Upgrade Horilla HRMS to version 1.5.0 or later immediately
  • Review recent user input and stored content for potential XSS payloads
  • Implement Content Security Policy headers as a defense-in-depth measure
  • Audit logs for any signs of successful exploitation prior to patching

Patch Information

The vulnerability has been addressed in Horilla version 1.5.0. Organizations running version 1.4.0 or earlier should upgrade immediately. The fix is available via the official GitHub Release 1.5.0. For complete details on the vulnerability and remediation, refer to the GitHub Security Advisory GHSA-rqw5-fjm4-rgvm.

Workarounds

  • Implement a strict Content Security Policy (CSP) header to prevent inline script execution and restrict script sources
  • Deploy a web application firewall (WAF) with XSS protection rules as an additional layer of defense
  • Restrict privileged account access to minimize the attack surface until patching is complete
  • Consider temporarily disabling features that process user-generated content if immediate patching is not feasible
bash
# Example Content Security Policy header configuration (Apache)
# Add to .htaccess or virtual host configuration
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; object-src 'none'; frame-ancestors 'self';"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechHorilla

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Release 1.5.0

  • GitHub Security Advisory GHSA-rqw5-fjm4-rgvm
  • Related CVEs
  • CVE-2026-3050: Horilla Horilla XSS Vulnerability

  • CVE-2026-24034: Horilla HRMS XSS Vulnerability

  • CVE-2026-24010: Horilla HRMS File Upload XSS Vulnerability

  • CVE-2026-3049: Horilla Open Redirect Vulnerability
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