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-2024-4984

CVE-2024-4984: Yoast SEO WordPress Plugin XSS Vulnerability

CVE-2024-4984 is a stored XSS vulnerability in Yoast SEO plugin for WordPress affecting versions up to 22.6. Attackers with contributor access can inject malicious scripts. This article covers technical details, impact, and mitigation.

Updated: January 22, 2026

CVE-2024-4984 Overview

The Yoast SEO plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in the display_name author meta field. This vulnerability affects all versions up to and including 22.6 and stems from insufficient input sanitization and output escaping. Authenticated attackers with contributor-level access or above can exploit this flaw to inject arbitrary web scripts into pages, which execute whenever a user accesses an injected page.

Critical Impact

Authenticated attackers can inject persistent malicious scripts that execute in the context of other users' sessions, potentially leading to session hijacking, credential theft, or administrative account compromise on WordPress sites using vulnerable Yoast SEO versions.

Affected Products

  • Yoast SEO WordPress Plugin versions up to and including 22.6
  • WordPress installations with vulnerable Yoast SEO plugin versions
  • Sites allowing contributor-level or higher user registrations

Discovery Timeline

  • 2024-05-16 - CVE-2024-4984 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-4984

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability exists within the Yoast SEO plugin's handling of the display_name author meta field. The plugin fails to properly sanitize user-controlled input before storing it and subsequently does not adequately escape the output when rendering this data on WordPress pages. This combination of inadequate input validation and output encoding creates a persistent XSS attack surface.

The vulnerability requires authentication with at least contributor-level privileges, which limits the initial attack surface but remains significant given that many WordPress sites permit user registration at this level. Once a malicious payload is injected, it persists in the database and executes in the browser context of any user who views the affected content, including site administrators.

Root Cause

The root cause of this vulnerability lies in the enhanced-data-presenter.php file within the Slack integration component of the Yoast SEO plugin. The display_name field value is processed without adequate sanitization before storage and rendered without proper HTML entity encoding during output. This allows specially crafted input containing JavaScript code to be stored and later executed in victim browsers.

Attack Vector

The attack vector is network-based and requires authenticated access at the contributor level or higher. An attacker with appropriate permissions can modify their author display_name meta field to include malicious JavaScript payloads. When the Yoast SEO plugin processes and displays this field—particularly in enhanced Slack preview data—the unsanitized script executes in the context of any user viewing the affected page.

The attack chain typically involves:

  1. Attacker obtains contributor-level credentials (through registration, compromise, or social engineering)
  2. Attacker injects malicious JavaScript into their display_name field
  3. Victim users visit pages containing the attacker's author information
  4. Malicious script executes with the victim's session privileges

Since no verified code examples are available for this vulnerability, refer to the GitHub Pull Request #21334 and the WordPress SEO Changeset 3079234 for technical implementation details of the fix.

Detection Methods for CVE-2024-4984

Indicators of Compromise

  • Unusual or suspicious content in WordPress user display_name meta fields containing script tags, event handlers, or encoded JavaScript
  • Unexpected JavaScript execution or redirects when viewing author pages or posts
  • Modified user profile data containing HTML or JavaScript elements
  • Browser console errors indicating blocked or executed inline scripts from unexpected sources

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Monitor WordPress database for suspicious patterns in user meta fields, particularly display_name values containing HTML/JavaScript
  • Deploy Web Application Firewall (WAF) rules to detect XSS payloads in user profile submissions
  • Review WordPress audit logs for unusual profile modification patterns by contributor-level accounts

Monitoring Recommendations

  • Enable detailed logging for user profile modifications in WordPress
  • Configure SentinelOne Singularity Platform to monitor for anomalous web application behavior and JavaScript injection patterns
  • Implement browser-side XSS auditing and reporting mechanisms
  • Regularly audit contributor and author account activities for suspicious behavior

How to Mitigate CVE-2024-4984

Immediate Actions Required

  • Update Yoast SEO plugin to version 22.7 or later immediately
  • Audit all existing user display_name meta fields for potentially malicious content
  • Review and sanitize any suspicious entries found in user profiles
  • Consider temporarily restricting contributor-level registration until patches are applied

Patch Information

Yoast has addressed this vulnerability in version 22.7 of the Yoast SEO plugin. The fix implements proper input sanitization and output escaping for the display_name author meta field in the enhanced-data-presenter.php file. Detailed information about the security fix is available in the Yoast SEO Changelog 22.7 and the Wordfence Vulnerability Analysis.

Workarounds

  • Implement strict Content Security Policy headers to mitigate XSS impact pending updates
  • Limit user registration to prevent untrusted contributor accounts from being created
  • Manually sanitize existing display_name values in the WordPress database
  • Deploy a Web Application Firewall with XSS protection rules as an additional defense layer
bash
# Check current Yoast SEO version via WP-CLI
wp plugin list --name=wordpress-seo --fields=name,version,update_version

# Update Yoast SEO to latest version
wp plugin update wordpress-seo

# Verify update was successful
wp plugin get wordpress-seo --field=version

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.47%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Yoast SEO Changelog 22.7

  • GitHub Pull Request #21334

  • WordPress SEO Changeset 3079234

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2023-54358: adivaha Travel Plugin XSS Vulnerability

  • CVE-2026-3005: WordPress List Category Posts XSS Flaw

  • CVE-2026-5742: WordPress UsersWP Plugin XSS Vulnerability

  • CVE-2026-4336: WordPress Ultimate FAQ Accordion XSS Flaw
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