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

CVE-2026-35460: Papra Email Template XSS Vulnerability

CVE-2026-35460 is an XSS flaw in Papra's transactional email templates that allows attackers to inject HTML via display names. This post explains its impact, affected versions, and mitigation steps.

Published: April 10, 2026

CVE-2026-35460 Overview

CVE-2026-35460 is a Cross-Site Scripting (XSS) vulnerability affecting Papra, a minimalistic document management and archiving platform. Prior to version 26.4.0, transactional email templates in Papra interpolate user.name directly into HTML without escaping or sanitization. An attacker who registers with a display name containing HTML tags will have those tags injected into the verification and password reset email bodies. Since emails are sent from the legitimate domain (e.g., auth@mail.papra.app), this enables convincing phishing attacks that appear to originate from official Papra notifications.

Critical Impact

Attackers can craft malicious HTML content in registration display names to inject arbitrary HTML into legitimate transactional emails, enabling sophisticated phishing attacks that abuse trusted email domains.

Affected Products

  • Papra versions prior to 26.4.0

Discovery Timeline

  • April 7, 2026 - CVE-2026-35460 published to NVD
  • April 8, 2026 - Last updated in NVD database

Technical Details for CVE-2026-35460

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. In this case, the XSS manifests within email templates rather than web pages, creating an HTML injection vector in transactional emails.

The core issue lies in how Papra handles user-supplied display names when generating email content. The platform's email templating system directly interpolates the user.name field into the HTML body of verification and password reset emails without performing any HTML entity encoding or sanitization. This allows malicious HTML markup embedded in a user's display name to be rendered as actual HTML elements within the email body.

The attack is particularly dangerous because emails originate from Papra's legitimate mail servers and domains. Recipients have no technical means to distinguish between legitimate notifications and those containing injected malicious content, as all standard email authentication mechanisms (SPF, DKIM, DMARC) will pass validation.

Root Cause

The root cause is missing input sanitization in the email template rendering pipeline. When constructing transactional emails, the application directly embeds the user.name value without HTML-encoding special characters such as <, >, ", and &. This allows HTML tags present in the display name to be interpreted as markup rather than plain text.

Attack Vector

The attack is network-based and requires low privileges (only user registration). An attacker can exploit this vulnerability through the following steps:

  1. Register a new Papra account with a display name containing malicious HTML (e.g., <a href="https://attacker-site.com">Click here to verify</a>)
  2. The Papra system generates a verification email containing the attacker's display name
  3. The injected HTML renders in the email body, potentially displaying phishing links or misleading content
  4. If the attacker can trigger password reset emails for other users (through account enumeration or social engineering), they may be able to inject content into emails sent to victims

The vulnerability could be used to inject links to credential harvesting pages, embed misleading instructions, or include scripts in email clients that render JavaScript in HTML emails.

Detection Methods for CVE-2026-35460

Indicators of Compromise

  • User accounts with display names containing HTML tags such as <a>, <script>, <img>, or <iframe>
  • Registration attempts with unusually long display names containing encoded HTML entities
  • Reported phishing emails that appear to originate from legitimate Papra email addresses
  • User complaints about suspicious content in verification or password reset emails

Detection Strategies

  • Implement input validation logging to flag registration attempts containing HTML special characters in display names
  • Monitor for user accounts where the display name contains pattern matches for HTML tags
  • Review email bounce logs for unusual patterns that might indicate injection testing
  • Analyze authentication logs for rapid account creation that may indicate automated exploitation attempts

Monitoring Recommendations

  • Enable detailed logging for user registration and profile update events
  • Set up alerts for display names containing characters commonly used in HTML injection (<, >, ", ')
  • Monitor outbound email content for unexpected HTML elements using email gateway inspection tools
  • Review user-reported phishing incidents for patterns indicating email template injection

How to Mitigate CVE-2026-35460

Immediate Actions Required

  • Upgrade Papra to version 26.4.0 or later immediately
  • Audit existing user accounts for display names containing HTML markup
  • Sanitize or reset any user display names found to contain HTML tags
  • Review recent transactional emails for evidence of exploitation

Patch Information

This vulnerability is fixed in Papra version 26.4.0. The fix implements proper HTML entity encoding for user-supplied data interpolated into email templates. For detailed patch information, refer to the GitHub Security Advisory.

Workarounds

  • If immediate upgrade is not possible, implement input validation at the registration layer to reject display names containing HTML special characters
  • Configure a Web Application Firewall (WAF) rule to block registration requests where the display name field contains HTML tags
  • Temporarily disable user self-registration until the patch can be applied
  • Switch transactional emails to plain text format to prevent HTML rendering
bash
# Example: Sanitize existing display names in database (adjust for your database)
# This removes HTML tags from user display names as a temporary measure
# Always backup your database before running update queries

# PostgreSQL example:
psql -d papra_db -c "UPDATE users SET display_name = regexp_replace(display_name, '<[^>]+>', '', 'g') WHERE display_name ~ '<[^>]+>';"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechPapra

  • SeverityMEDIUM

  • CVSS Score4.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-35461: Papra SSRF Vulnerability

  • CVE-2026-35462: Papra Authentication Bypass 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