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

CVE-2026-24127: Typemill CMS XSS Vulnerability

CVE-2026-24127 is a reflected cross-site scripting flaw in Typemill CMS that allows attackers to execute scripts in the login page. This post explains its impact, affected versions, and mitigation steps.

Published: January 30, 2026

CVE-2026-24127 Overview

CVE-2026-24127 is a reflected Cross-Site Scripting (XSS) vulnerability in Typemill, a flat-file, Markdown-based content management system designed for informational documentation websites. The vulnerability exists in the login error view template login.twig where the username value is echoed back to the user without proper contextual encoding when authentication fails. This allows an attacker to craft malicious URLs that execute arbitrary JavaScript in the context of the login page when a victim clicks the link.

Critical Impact

Attackers can steal session cookies, capture credentials, perform phishing attacks, or redirect users to malicious sites by exploiting this reflected XSS vulnerability in the authentication flow.

Affected Products

  • Typemill CMS versions 2.19.1 and below
  • Typemill login template (login.twig)
  • Systems using vulnerable OldInputMiddleware.php

Discovery Timeline

  • 2026-01-23 - CVE CVE-2026-24127 published to NVD
  • 2026-01-26 - Last updated in NVD database

Technical Details for CVE-2026-24127

Vulnerability Analysis

This reflected XSS vulnerability (CWE-79) occurs within the authentication workflow of Typemill CMS. When a user submits invalid login credentials, the application reflects the submitted username parameter back to the browser within the error message displayed on the login page. The vulnerable login.twig template fails to apply proper output encoding to the username value before rendering it in the HTML context.

The lack of contextual encoding allows an attacker to inject malicious JavaScript code within the username parameter. When a victim visits a specially crafted URL containing the malicious payload, the script executes within the victim's browser session on the Typemill login page. This can lead to credential theft through fake login forms, session token exfiltration, or redirection to attacker-controlled phishing sites.

Root Cause

The root cause is improper input validation and missing output encoding in the login.twig template and the OldInputMiddleware.php middleware. The application stores user-submitted form data in the session for re-display purposes without sanitization. The vulnerable middleware directly assigned parsed body content to the session without recursive sanitization of potentially dangerous input values.

Attack Vector

The attack is network-based and requires user interaction. An attacker crafts a malicious URL containing JavaScript payload in the username parameter and distributes it via phishing emails, social media, or other channels. When a victim clicks the link and the login fails, the malicious script executes in their browser context. The attack does not require authentication, making it accessible to any remote attacker who can convince a victim to click a crafted link.

php
// Security patch in system/typemill/Middleware/OldInputMiddleware.php
// Source: https://github.com/typemill/typemill/commit/b506acd11e80fb9c8db5fa6c2c8ad73580b4e88c

 		{
 			unset($_SESSION['old']);
 
-			if(!empty($request->getParsedBody()))
+            $oldinput = $request->getParsedBody();
+            if (!empty($oldinput) && is_array($oldinput))
  			{
-			    $oldinput = $request->getParsedBody();
-
-			    if(is_array($oldinput))
-			    {
-				    foreach($oldinput as $key => $value)
-				    {
-				        if (stripos($key, 'pass') !== false)
-				        {
-				            unset($oldinput[$key]);
-				        }
-			    	}
-			    }
+                $oldinput = $this->sanitizeRecursive($oldinput);
 
 				$_SESSION['old'] = $oldinput;
  			}
 		}
 
 		return $response;
 	}
+
+	private function sanitizeRecursive(array $oldinput): array
+	{

The patch introduces a sanitizeRecursive() method that properly sanitizes all input values before storing them in the session, preventing malicious scripts from being reflected back to users.

Detection Methods for CVE-2026-24127

Indicators of Compromise

  • Web server logs containing login requests with suspicious JavaScript patterns in the username parameter (e.g., <script>, onerror=, javascript:)
  • Unusual URL patterns in referrer logs pointing to the /tm/login endpoint with encoded payloads
  • Security log entries showing repeated "login: invalid data" attempts with anomalous username values
  • Client-side error reports indicating script execution errors from unexpected sources

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block XSS patterns in authentication endpoints
  • Configure Content Security Policy (CSP) headers to restrict inline script execution and report violations
  • Deploy behavioral analysis to identify suspicious login page access patterns with encoded URL parameters
  • Enable browser-based XSS auditing and monitor for blocked script execution events

Monitoring Recommendations

  • Monitor web server access logs for requests to /tm/login containing URL-encoded special characters or JavaScript keywords
  • Set up alerts for CSP violation reports indicating attempted script injection
  • Track failed authentication attempts that contain non-alphanumeric characters in username fields
  • Review security logs at data/security/securitylog.txt for unusual patterns in login failure entries

How to Mitigate CVE-2026-24127

Immediate Actions Required

  • Upgrade Typemill CMS to version 2.19.2 or later immediately
  • Implement Content Security Policy headers with strict script-src directives to mitigate XSS impact
  • Deploy WAF rules to filter XSS payloads targeting the login endpoint
  • Review access logs for evidence of prior exploitation attempts

Patch Information

The vulnerability has been fixed in Typemill version 2.19.2. The patch introduces a sanitizeRecursive() method in OldInputMiddleware.php that properly escapes and sanitizes all user input before storing it in session variables for re-display. The fix ensures proper contextual encoding is applied to prevent script injection.

For detailed patch information, see the GitHub Security Advisory GHSA-65x4-pjhj-r8wr and the security patch commit. The patched version is available at the GitHub Release v2.19.2.

Workarounds

  • If immediate patching is not possible, implement a reverse proxy or WAF rule to sanitize the username parameter before it reaches the application
  • Configure strict Content Security Policy headers to prevent inline script execution: Content-Security-Policy: script-src 'self'; object-src 'none'
  • Restrict access to the login page to trusted IP ranges if the CMS is used internally
  • Monitor the security log file for suspicious login attempts and block offending IP addresses
bash
# Example nginx configuration for CSP headers
location /tm/login {
    add_header Content-Security-Policy "script-src 'self'; object-src 'none'; base-uri 'self';" always;
    add_header X-Content-Type-Options "nosniff" always;
    add_header X-XSS-Protection "1; mode=block" always;
}

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechTypemill

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.04%

  • 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-79
  • Technical References
  • GitHub Commit Log

  • GitHub Release v2.19.2

  • GitHub Security Advisory GHSA-65x4-pjhj-r8wr
  • 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