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-2019-25317

CVE-2019-25317: Kimai 2 Persistent XSS Vulnerability

CVE-2019-25317 is a persistent cross-site scripting flaw in Kimai 2 that allows attackers to inject malicious scripts via timesheet descriptions. This article covers the technical details, affected versions, and mitigation.

Published: February 13, 2026

CVE-2019-25317 Overview

CVE-2019-25317 is a persistent cross-site scripting (XSS) vulnerability in Kimai 2, an open-source time-tracking application. The vulnerability allows authenticated attackers to inject malicious scripts into timesheet descriptions. When SVG-based XSS payloads are inserted into the description field, arbitrary JavaScript code executes when the page is loaded and viewed by other users, potentially leading to session hijacking, credential theft, or further attacks against application users.

Critical Impact

Attackers can store malicious JavaScript payloads in timesheet descriptions that execute in the browsers of other users viewing the timesheet, enabling session hijacking and data exfiltration.

Affected Products

  • Kimai 2 (versions prior to the fix in PR #962)

Discovery Timeline

  • 2026-02-11 - CVE CVE-2019-25317 published to NVD
  • 2026-02-11 - Last updated in NVD database

Technical Details for CVE-2019-25317

Vulnerability Analysis

This persistent XSS vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation) occurs due to insufficient input sanitization in Kimai 2's timesheet description field. The application fails to properly validate and encode user-supplied input before rendering it in the web interface, allowing attackers to inject malicious content that persists in the database and executes whenever the affected page is viewed.

The attack requires an authenticated user with access to create or edit timesheet entries. Once the malicious payload is stored, it affects all users who subsequently view the compromised timesheet entry, making this a stored/persistent XSS rather than a reflected variant. The network-based attack vector combined with the requirement for user interaction (viewing the affected page) and low privilege requirements makes this vulnerability exploitable in typical multi-user Kimai deployments.

Root Cause

The root cause of this vulnerability is improper input validation and output encoding in the timesheet description handling functionality. The application accepts and stores SVG elements containing JavaScript event handlers or inline scripts without proper sanitization. When rendering these descriptions, the application fails to encode or strip dangerous HTML/SVG content, allowing embedded scripts to execute in the context of the victim's browser session.

Attack Vector

The attack is executed over the network by an authenticated user who has permission to create or modify timesheet entries in Kimai 2. The attacker crafts a malicious payload using SVG-based XSS techniques—such as embedding onload event handlers within SVG tags—and inserts it into a timesheet description field. When other users, including administrators, view the affected timesheet entry, the malicious JavaScript executes within their browser context.

This enables attackers to steal session cookies, capture keystrokes, redirect users to phishing sites, or perform actions on behalf of the victim user. The persistent nature of the vulnerability means the payload remains active until the malicious content is removed from the database.

For technical details on the exploitation technique, refer to the Exploit-DB #47286 entry and the VulnCheck Kimai XSS Advisory.

Detection Methods for CVE-2019-25317

Indicators of Compromise

  • Presence of <svg> tags or SVG-based markup containing event handlers (onload, onerror, etc.) in timesheet description fields
  • Unexpected JavaScript execution or browser console errors when viewing timesheet entries
  • Database entries in the timesheet description column containing HTML/SVG tags with inline event handlers or javascript: protocol references
  • User reports of unusual browser behavior, redirects, or pop-ups when accessing timesheet pages

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block XSS patterns in POST/PUT requests to timesheet endpoints
  • Enable Content Security Policy (CSP) headers to restrict inline script execution and report violations
  • Deploy browser-based security monitoring tools to detect unexpected script execution on Kimai pages
  • Conduct regular database audits scanning for stored XSS payloads in user-controlled fields

Monitoring Recommendations

  • Monitor application logs for unusual input patterns containing HTML tags, SVG elements, or JavaScript keywords
  • Set up alerts for CSP violation reports indicating attempted inline script execution
  • Review access logs for suspicious activity following timesheet creation or modification events
  • Implement real-time monitoring for DOM modifications or unexpected network requests from the Kimai application

How to Mitigate CVE-2019-25317

Immediate Actions Required

  • Update Kimai 2 to a version that includes the fix from GitHub Pull Request #962
  • Review existing timesheet entries in the database for malicious content and sanitize any identified payloads
  • Implement Content Security Policy headers to mitigate the impact of any stored XSS payloads
  • Temporarily restrict timesheet creation/editing permissions to trusted users until the patch is applied

Patch Information

The vulnerability has been addressed in GitHub Pull Request #962 in the Kimai 2 repository. Users should update to the latest version of Kimai 2 that incorporates this fix. The patch implements proper input sanitization and output encoding for timesheet description fields to prevent XSS attacks.

For additional details, refer to the Kimai 2 GitHub Repository.

Workarounds

  • Implement strict Content Security Policy (CSP) headers that disable inline scripts: Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'
  • Deploy a web application firewall with XSS protection rules to filter malicious input before it reaches the application
  • Sanitize the database by running queries to identify and remove timesheet entries containing suspicious SVG or script content
  • If upgrading is not immediately possible, consider restricting access to the timesheet functionality or placing Kimai behind an authenticated reverse proxy with additional input filtering
bash
# Example CSP header configuration for Apache
# Add to .htaccess or Apache configuration
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; 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/TechKimai

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/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
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Repository for Kimai2

  • GitHub Pull Request #962

  • Exploit-DB #47286

  • VulnCheck Kimai XSS Advisory
  • Related CVEs
  • CVE-2026-28685: Kimai Auth Bypass Vulnerability

  • CVE-2026-23626: Kimai Information Disclosure 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