A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-6581

CVE-2024-6581: Lollms SVG Upload XSS Vulnerability

CVE-2024-6581 is an XSS vulnerability in Lollms Lord Of Large Language Models v9.9 that allows malicious SVG uploads through incomplete filtering. This post covers technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2024-6581 Overview

CVE-2024-6581 is a cross-site scripting (XSS) vulnerability in the Lollms (Lord of Large Language Models) application, version 9.9. The flaw resides in the discussion image upload function, which permits uploading SVG files. The sanitize_svg function performs incomplete filtering, stripping only <script> elements and on* event attributes. Attackers can craft SVG files that contain other XSS vectors not covered by the sanitizer. When an authorized user opens a malicious URL referencing the crafted SVG, the embedded payload executes in the browser context, creating a pathway to remote code execution. The issue is tracked under CWE-79.

Critical Impact

Stored XSS via malicious SVG upload can escalate to remote code execution against authorized Lollms v9.9 users.

Affected Products

  • Lollms Lord of Large Language Models version 9.9
  • Deployments exposing the discussion image upload endpoint
  • Instances relying on the built-in sanitize_svg function for SVG filtering

Discovery Timeline

  • 2024-10-29 - CVE-2024-6581 published to NVD
  • 2024-11-01 - Last updated in NVD database
  • Patch reference - Fix committed in parisneo/lollms commit 328b960
  • Bounty disclosure - Reported through the Huntr Bounty program

Technical Details for CVE-2024-6581

Vulnerability Analysis

The vulnerability stems from incomplete sanitization of user-supplied Scalable Vector Graphics (SVG) files. SVG is an XML-based image format that natively supports JavaScript execution through multiple constructs. The Lollms discussion image upload endpoint accepts SVG content and passes it through the sanitize_svg function before storing it for later retrieval.

The sanitize_svg implementation removes <script> tags and attributes matching the on* event handler pattern. This deny-list approach overlooks numerous XSS vectors valid within SVG, including <foreignObject> containing HTML, <use> elements referencing external resources, xlink:href attributes carrying javascript: URIs, CDATA-wrapped scripts, and namespaced event handlers. Attackers craft SVG payloads using these alternative vectors to bypass the filter.

Once stored, the SVG renders inline when an authorized user navigates to a URL that references the file. The payload executes within the application origin, granting the attacker the victim's session privileges. Because Lollms exposes model management and code execution interfaces, an XSS foothold can be pivoted into remote code execution against the host running the language model service.

Root Cause

The root cause is a deny-list sanitizer that does not account for the full XSS surface of the SVG specification. Safe SVG handling requires an allow-list parser that strips all unknown elements, attributes, and URI schemes rather than enumerating known-bad patterns.

Attack Vector

Exploitation requires a low-privileged authenticated account that can invoke the discussion image upload function. The attacker uploads a crafted SVG, then lures a second authorized user into visiting the URL hosting the file. User interaction is required, but the scope changes because script executes against another principal's session. See the vendor commit for the corrected filtering logic.

No verified public exploit code is available. The vulnerability mechanism is described in the Huntr bounty listing.

Detection Methods for CVE-2024-6581

Indicators of Compromise

  • SVG files in Lollms upload directories containing <foreignObject>, <use xlink:href="javascript:">, or CDATA-wrapped script blocks
  • HTTP POST requests to the discussion image upload endpoint with Content-Type: image/svg+xml
  • Unexpected outbound connections from browser sessions of users who viewed shared Lollms discussions
  • New or modified administrative accounts following SVG file access events

Detection Strategies

  • Inspect stored SVG assets for XML elements and attributes outside an allow-list of static drawing primitives
  • Correlate file uploads with subsequent URL access by privileged users to surface social-engineering chains
  • Apply YARA or regex scans for javascript: URIs and <foreignObject> tags within image upload directories

Monitoring Recommendations

  • Log all discussion image uploads with the uploader identity, source IP, and file hash
  • Alert on browser execution of inline scripts originating from image/svg+xml responses served by Lollms
  • Track session activity for accounts that recently rendered third-party SVG content for privilege changes

How to Mitigate CVE-2024-6581

Immediate Actions Required

  • Upgrade Lollms beyond version 9.9 to a build that incorporates commit 328b960
  • Restrict the discussion image upload function to trusted users until patching is complete
  • Audit the upload directory and remove any SVG files containing dynamic XML constructs
  • Rotate session tokens for accounts that may have rendered untrusted SVG content

Patch Information

The maintainer addressed the issue in the parisneo/lollms repository. Operators should pull the latest version from the upstream repository and redeploy. Verify that the updated sanitize_svg function rejects elements and attributes beyond a safe allow-list.

Workarounds

  • Disable SVG uploads entirely and restrict accepted MIME types to raster formats such as PNG and JPEG
  • Serve user-uploaded images from a sandboxed origin distinct from the Lollms application domain
  • Apply a strict Content Security Policy that blocks inline script execution and javascript: URIs
  • Place Lollms behind a web application firewall rule that rejects SVG payloads containing <script>, <foreignObject>, or xlink:href with non-HTTP schemes
bash
# Example nginx configuration to block SVG uploads at the proxy layer
location /discussion/upload {
    if ($http_content_type ~* "image/svg\+xml") {
        return 415;
    }
    proxy_pass http://lollms_backend;
}

# Enforce a restrictive CSP on Lollms responses
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'none'" always;

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechLollms

  • SeverityCRITICAL

  • CVSS Score9.0

  • EPSS Probability1.65%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-79
  • Technical References
  • Huntr Bounty Listing
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2026-1115: Lollms Stored XSS Vulnerability

  • CVE-2026-1116: parisneo/lollms XSS Vulnerability

  • CVE-2026-1163: Lollms Session Expiration Bypass Vulnerability

  • CVE-2026-1114: Lollms Privilege Escalation Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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