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

CVE-2026-24476: Shaarli XSS Vulnerability

CVE-2026-24476 is an XSS flaw in Shaarli personal bookmarking service caused by malicious tags starting with quotation marks. Attackers can inject arbitrary HTML code. This article covers technical details, versions, and fixes.

Published: January 30, 2026

CVE-2026-24476 Overview

CVE-2026-24476 is a Cross-Site Scripting (XSS) vulnerability affecting Shaarli, a self-hosted personal bookmarking service. Prior to version 0.16.0, an attacker can craft a malicious tag starting with a double-quote character (") that prematurely terminates the <input> tag on the start page. This improper input handling allows injection of arbitrary HTML content, potentially leading to XSS attacks that could compromise user sessions or execute malicious scripts in the context of the victim's browser.

Critical Impact

Attackers can inject malicious HTML and JavaScript through crafted bookmark tags, potentially stealing session cookies, redirecting users to phishing sites, or performing actions on behalf of authenticated users.

Affected Products

  • Shaarli versions prior to 0.16.0
  • Self-hosted Shaarli instances with user-contributed or imported tags
  • Shaarli deployments using the default template (tpl/default)

Discovery Timeline

  • 2026-01-26 - CVE-2026-24476 published to NVD
  • 2026-01-27 - Last updated in NVD database

Technical Details for CVE-2026-24476

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The flaw exists in Shaarli's template rendering logic where user-supplied tag names are inserted directly into HTML data-list attributes without proper escaping.

When a tag containing a double-quote character is processed, it prematurely closes the data-list attribute, allowing the attacker to inject additional HTML attributes or entirely new HTML elements. Since the tag data is rendered on the start page and edit link pages, any user viewing a page containing the malicious tag would be exposed to the injected content.

The attack requires local access and user interaction, as an attacker must either have the ability to create tags in the system or convince an administrator to import bookmarks containing malicious tags.

Root Cause

The root cause is the absence of output encoding when rendering tag names within HTML input element attributes. The Shaarli template engine loops through tags and outputs them directly into the data-list attribute without applying the escape filter. This allows special HTML characters like double-quotes to break out of the attribute context and inject arbitrary HTML.

Attack Vector

The attack vector is local with high complexity requirements. An attacker needs to:

  1. Create or inject a bookmark tag starting with a double-quote character (e.g., "onclick="alert(1))
  2. Wait for or trigger a victim to visit the affected page (start page or edit link page)
  3. The malicious tag content executes within the victim's browser context

The malicious tag could be introduced through:

  • Direct tag creation if the attacker has access to the Shaarli instance
  • Importing a crafted bookmark file containing malicious tags
  • Social engineering to convince an administrator to add a bookmark with the malicious tag
text
// Example exploitation code (sanitized)
           </div>
           <div>
             <input type="text" name="tags" id="tags" class="lf_input"
-                   data-list="{loop="$tags"}{$key}, {/loop}" data-multiple data-autofirst autocomplete="off">
+                   data-list="{loop="$tags"}{$key|escape}, {/loop}" data-multiple data-autofirst autocomplete="off">
           </div>

           <div>

Source: GitHub Commit

The patch demonstrates the fix by adding the |escape filter to the {$key} variable, ensuring all tag names are properly HTML-encoded before being rendered in the template.

Detection Methods for CVE-2026-24476

Indicators of Compromise

  • Presence of tags containing double-quote characters (") at the beginning
  • Unusual HTML or JavaScript content appearing in tag fields in the database
  • Browser console errors indicating malformed HTML on Shaarli pages
  • Unexpected script execution or redirects when viewing bookmark pages

Detection Strategies

  • Review the Shaarli database for tags containing suspicious characters such as ", <, >, or script keywords
  • Monitor web server logs for unusual bookmark import activities or tag creation requests
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Use browser developer tools to inspect the page source for malformed <input> tags on Shaarli pages

Monitoring Recommendations

  • Enable CSP reporting to capture any XSS attempts blocked by the policy
  • Configure web application firewall (WAF) rules to detect and block requests containing XSS patterns in tag parameters
  • Audit bookmark import functionality and restrict import capabilities to trusted administrators
  • Monitor for anomalous session activity that could indicate session hijacking

How to Mitigate CVE-2026-24476

Immediate Actions Required

  • Upgrade Shaarli to version 0.16.0 or later immediately
  • Review existing tags in the database for any containing suspicious characters
  • Implement Content Security Policy headers as defense-in-depth
  • Consider temporarily restricting tag creation or bookmark import capabilities until the patch is applied

Patch Information

The vulnerability has been addressed in Shaarli version 0.16.0. The fix applies proper HTML escaping to tag names when rendering them in template files. The security patch can be reviewed in the GitHub Commit. Additional details are available in the GitHub Security Advisory.

The following patch was applied to tpl/default/editlink.html:

text
       </div>
       <div class="{if="$retrieve_description"}{$asyncLoadClass}{/if}">
         <input type="text" name="lf_tags" id="lf_tags{$batchId}" value="{$link.tags}" class="lf_input autofocus"
-          data-list="{loop="$tags"}{$key}, {/loop}" data-multiple data-autofirst autocomplete="off" >
+          data-list="{loop="$tags"}{$key|escape}, {/loop}" data-multiple data-autofirst autocomplete="off" >
         <div class="icon-container">
           <i class="loader"></i>
         </div>

Source: GitHub Commit

Workarounds

  • Manually sanitize existing tags by removing or escaping any double-quote characters from the database
  • Implement a Content Security Policy header with script-src 'self' to mitigate the impact of successful XSS
  • Restrict access to the Shaarli instance to trusted users until patching is complete
  • Disable bookmark import functionality temporarily if external bookmark files are not essential
bash
# Configuration example
# Add Content Security Policy header to your web server configuration
# For Apache (.htaccess or virtual host config):
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"

# For Nginx (server block):
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'";

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechShaarli

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:H/AT:N/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/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
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Overview

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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