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

CVE-2025-0957: YaySMTP WordPress Plugin XSS Vulnerability

CVE-2025-0957 is a stored XSS vulnerability in the YaySMTP WordPress plugin that allows unauthenticated attackers to inject malicious scripts. This article covers the technical details, affected versions, and mitigation steps.

Updated: May 15, 2026

CVE-2025-0957 Overview

CVE-2025-0957 is a stored Cross-Site Scripting (XSS) vulnerability in the SMTP for Amazon SES – YaySMTP plugin for WordPress. The flaw affects all versions up to and including 1.7.1. The root cause is insufficient input sanitization and output escaping within the plugin's helper functions. Unauthenticated attackers can inject arbitrary JavaScript that executes when any user visits an affected page. The vulnerability is tracked under CWE-79: Improper Neutralization of Input During Web Page Generation.

Critical Impact

Unauthenticated attackers can persist malicious scripts in WordPress pages, enabling session theft, administrative account takeover, and arbitrary client-side actions against site visitors and administrators.

Affected Products

  • SMTP for Amazon SES – YaySMTP plugin for WordPress (versions ≤ 1.7.1)
  • WordPress sites with the smtp-amazon-ses plugin installed and active
  • Any WordPress administrator or visitor accessing pages rendered with the unsanitized plugin output

Discovery Timeline

  • 2025-02-22 - CVE-2025-0957 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-0957

Vulnerability Analysis

The YaySMTP plugin handles SMTP configuration and email-related data for sites sending mail through Amazon Simple Email Service (SES). The vulnerable code paths reside in includes/Functions.php and includes/Helper/Utils.php, which process plugin input and emit values into WordPress pages.

Because these functions neither sanitize input on save nor escape output on render, attacker-supplied content reaches the Document Object Model (DOM) unmodified. A persistent payload stored through an exposed entry point executes whenever the affected page loads in a browser. The Exploit Prediction Scoring System (EPSS) probability is 0.295%.

With network attack vector, no privileges required, and a scope change to other components, an attacker can pivot from the plugin context into the broader WordPress administrative interface. Successful exploitation can lead to administrator account compromise, malicious redirects, SEO spam injection, or cryptocurrency drainer scripts.

Root Cause

The vulnerability stems from missing calls to WordPress sanitization functions such as sanitize_text_field() on input and missing escaping helpers such as esc_html(), esc_attr(), or wp_kses() on output. Attacker-controlled strings are stored to the database and later concatenated into HTML contexts without neutralization.

Attack Vector

An unauthenticated remote attacker submits a crafted payload to a plugin endpoint that writes to a persisted setting or data field. The injected JavaScript is later rendered when an administrator or visitor loads a page containing the unsanitized value. Because the payload is stored server-side, every subsequent visitor triggers the script, including privileged users whose session cookies or nonce tokens can be exfiltrated.

No verified public proof-of-concept code is currently published for this vulnerability. Technical details on the patched functions are available in the WordPress Changeset #3270161 and the Wordfence Vulnerability Analysis.

Detection Methods for CVE-2025-0957

Indicators of Compromise

  • Unexpected <script>, <iframe>, or onerror= strings stored in WordPress wp_options rows associated with the smtp-amazon-ses plugin.
  • Outbound requests from administrator browsers to unfamiliar domains shortly after loading plugin settings or site pages.
  • New or modified administrator accounts created without a corresponding authenticated session in WordPress logs.
  • Page source containing JavaScript that does not match the site's known theme, plugin, or analytics inventory.

Detection Strategies

  • Audit the WordPress database for plugin option values containing HTML or JavaScript syntax using queries against wp_options and plugin-specific tables.
  • Review web server access logs for unauthenticated POST requests to YaySMTP plugin endpoints under /wp-content/plugins/smtp-amazon-ses/.
  • Run a static scanner such as Wordfence or a comparable WordPress security plugin to flag stored XSS signatures in plugin data.

Monitoring Recommendations

  • Alert on creation or modification of WordPress administrator accounts and on changes to plugin settings outside authorized maintenance windows.
  • Monitor browser telemetry from administrative workstations for script execution originating from the WordPress admin domain to external hosts.
  • Track plugin version inventory across managed WordPress fleets and flag any host still running smtp-amazon-ses ≤ 1.7.1.

How to Mitigate CVE-2025-0957

Immediate Actions Required

  • Update the SMTP for Amazon SES – YaySMTP plugin to the version released in WordPress Changeset #3270161 (above 1.7.1).
  • Inspect plugin option values and post content for previously injected payloads and remove any malicious markup.
  • Rotate WordPress administrator passwords and invalidate active sessions after confirming the site is clean.
  • Force a refresh of WordPress secret keys in wp-config.php to invalidate stolen authentication cookies.

Patch Information

The vendor addressed the issue by adding proper sanitization and escaping in includes/Functions.php and includes/Helper/Utils.php. The fix is published in WordPress Changeset #3270161. Refer to the WordPress Plugin Developer Info page to confirm the currently installed version and download the patched release.

Workarounds

  • Deactivate and remove the smtp-amazon-ses plugin until it can be updated to a patched version.
  • Restrict access to /wp-admin/ and plugin endpoints with a Web Application Firewall (WAF) rule blocking HTML or script characters in request bodies targeting the plugin.
  • Apply Content Security Policy (CSP) headers limiting inline script execution and external script sources on the WordPress site.
bash
# Verify plugin version and update via WP-CLI
wp plugin get smtp-amazon-ses --field=version
wp plugin update smtp-amazon-ses

# Search the database for suspicious stored payloads
wp db query "SELECT option_name, option_value FROM wp_options \
  WHERE option_value LIKE '%<script%' OR option_value LIKE '%onerror=%';"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.29%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WordPress Plugin Source File

  • WordPress Plugin Source File

  • WordPress Changeset #3270161

  • WordPress Plugin Developer Info

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2026-6504: Royal Elementor Addons XSS Vulnerability

  • CVE-2026-6174: CC Child Pages WordPress Plugin XSS Flaw

  • CVE-2026-6252: Meta Field Block WordPress Plugin XSS Flaw

  • CVE-2026-3694: Bold Page Builder WordPress 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