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-2025-3057

CVE-2025-3057: Drupal Core XSS Vulnerability

CVE-2025-3057 is a cross-site scripting flaw in Drupal core that allows attackers to inject malicious scripts into web pages. This post covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-3057 Overview

CVE-2025-3057 is a Cross-Site Scripting (XSS) vulnerability affecting Drupal core, one of the most widely deployed open-source content management systems. The vulnerability stems from improper neutralization of input during web page generation, allowing attackers to inject malicious scripts that execute in the context of authenticated users' browsers.

This XSS vulnerability in Drupal core enables attackers to potentially steal session cookies, perform unauthorized actions on behalf of users, redirect users to malicious sites, or deface web content. Given Drupal's extensive use in enterprise, government, and educational institutions, this vulnerability presents a significant risk to organizations relying on affected versions.

Critical Impact

Attackers can execute arbitrary JavaScript in victims' browsers, potentially leading to session hijacking, credential theft, and unauthorized actions within Drupal-powered websites.

Affected Products

  • Drupal core versions 8.0.0 through 10.3.12
  • Drupal core versions 10.4.0 through 10.4.2
  • Drupal core versions 11.0.0 through 11.0.11
  • Drupal core versions 11.1.0 through 11.1.2

Discovery Timeline

  • 2025-03-31 - CVE-2025-3057 published to NVD
  • 2025-04-15 - Last updated in NVD database

Technical Details for CVE-2025-3057

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 within Drupal core's handling of user-supplied input, where insufficient sanitization allows malicious scripts to be embedded within web pages and subsequently executed in visitors' browsers.

The attack requires user interaction—specifically, a victim must navigate to a page containing the injected payload. Once triggered, the malicious script executes with the same privileges as the victim's session, enabling a range of attacks from cookie theft to complete account takeover. The vulnerability affects a wide range of Drupal versions spanning major releases 8.x, 10.x, and 11.x, indicating a long-standing issue in the core input handling mechanisms.

Root Cause

The root cause of CVE-2025-3057 lies in inadequate input validation and output encoding within Drupal core's web page generation routines. When user-controlled data is incorporated into HTML output without proper sanitization or contextual escaping, it creates an injection point where attackers can insert executable script content.

Drupal typically employs robust filtering mechanisms through its Twig templating engine and various sanitization APIs, but this vulnerability represents a gap where certain input paths bypass these protections. The changed scope (S:C in the CVSS vector) indicates that the vulnerability can affect resources beyond the vulnerable component itself, amplifying its potential impact.

Attack Vector

The attack vector for CVE-2025-3057 is network-based, requiring no privileges to exploit but necessitating user interaction. An attacker could craft a malicious URL or embed payload-containing content within the application. When an authenticated user with elevated privileges (such as an administrator) views the affected page, the injected script executes within their browser session.

Common exploitation scenarios include:

  • Crafting malicious links distributed via email, social media, or other channels (Reflected XSS)
  • Storing malicious content within the application that executes when other users view it (Stored XSS)
  • Stealing session tokens or authentication cookies
  • Performing actions on behalf of the victim user
  • Modifying page content to phish for credentials

The vulnerability mechanism involves insufficient HTML entity encoding or JavaScript escaping when rendering user-supplied content. For detailed technical information about the specific affected functions and remediation details, refer to the Drupal Security Advisory SA-CORE-2025-001.

Detection Methods for CVE-2025-3057

Indicators of Compromise

  • Unusual JavaScript execution patterns in browser developer tools or web application firewall logs
  • Unexpected outbound requests to external domains from client browsers viewing Drupal pages
  • Suspicious URL parameters containing encoded script tags or JavaScript event handlers
  • Anomalous user session behavior indicating potential session hijacking

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect and block common XSS payloads in request parameters and body content
  • Implement Content Security Policy (CSP) headers with strict directives to prevent inline script execution and report violations
  • Monitor server logs for requests containing suspicious patterns such as <script>, javascript:, onerror=, or encoded variants
  • Utilize browser security headers like X-XSS-Protection and X-Content-Type-Options for additional defense layers

Monitoring Recommendations

  • Enable detailed access logging and analyze patterns for requests containing potential XSS payloads
  • Configure alerting on CSP violation reports to detect attempted XSS attacks in real-time
  • Monitor for unusual JavaScript errors or resource loading patterns in client-side monitoring tools
  • Implement user behavior analytics to detect account activity anomalies that may indicate session compromise

How to Mitigate CVE-2025-3057

Immediate Actions Required

  • Update Drupal core to patched versions: 10.3.13, 10.4.3, 11.0.12, or 11.1.3 depending on your current major version
  • Review and audit any custom modules or themes for similar input handling vulnerabilities
  • Implement Content Security Policy headers to mitigate the impact of any XSS vulnerabilities
  • Verify that all user sessions have been regenerated after patching to prevent exploitation of any previously compromised sessions

Patch Information

Drupal has released security updates addressing this vulnerability. Organizations should update to the following patched versions based on their current Drupal installation:

Current Version RangeUpgrade To
8.0.0 - 10.3.1210.3.13
10.4.0 - 10.4.210.4.3
11.0.0 - 11.0.1111.0.12
11.1.0 - 11.1.211.1.3

Detailed patch information and release notes are available in the Drupal Security Advisory SA-CORE-2025-001.

Workarounds

  • Deploy a Web Application Firewall (WAF) with rules specifically designed to block XSS payloads targeting Drupal installations
  • Implement strict Content Security Policy headers to prevent execution of inline scripts and restrict script sources
  • Limit administrative access to trusted IP ranges to reduce the attack surface for privilege escalation scenarios
  • Enable browser-side XSS protections through security headers while planning the upgrade path
bash
# Example: Add security headers to Apache configuration
# Add to .htaccess or Apache virtual host configuration

Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors 'self'"
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechDrupal

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Vendor Resources
  • Drupal Security Advisory
  • Related CVEs
  • CVE-2026-3528: Drupal Calculation Fields XSS Vulnerability

  • CVE-2026-3218: Drupal Responsive Favicons XSS Vulnerability

  • CVE-2026-3213: Drupal Anti-Spam CleanTalk XSS Vulnerability

  • CVE-2026-3212: Drupal Tagify XSS 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