Stored XSS Vulnerability in WordPress: A Critical Security Flaw

wordpress Updated 02 Oct 2025

Summary

25/06/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-31111: Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Automattic WordPress allows Stored XSS.This issue affects WordPress: from 6.5 through 6.5.4, from 6.4 through 6... Affects wordpress versions < 6.5.5+dfsg1-1. Fixed in 6.5.5+dfsg1-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

WordPress is a widely-used open-source content management system (CMS) that allows users to create and manage websites easily. It is known for its flexibility, extensive plugin ecosystem, and user-friendly interface. However, like any software, WordPress can be susceptible to security vulnerabilities, including cross-site scripting (XSS) attacks. This specific vulnerability allows attackers to inject malicious scripts into web pages, potentially compromising user data and site integrity.

Vulnerability Detail

The vulnerability identified as DEBIAN-CVE-2024-31111 is an improper neutralization of input during web page generation, leading to a Stored XSS issue in WordPress. This flaw affects multiple versions of WordPress, specifically from 6.5 to 6.5.4, 6.4 to 6.4.4, 6.3 to 6.3.4, 6.2 to 6.2.5, 6.1 to 6.1.6, 6.0 to 6.0.8, and 5.9 to 5.9.9. Attackers can exploit this vulnerability to inject malicious scripts that will be stored on the server and executed in the browsers of users who visit the affected pages, potentially leading to data theft, session hijacking, or defacement of the website.

How To Fix

Minimum fixed version

6.5.5+dfsg1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade wordpress

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can limit the exposure to this vulnerability by disabling any plugins or themes that are not actively used, as these may introduce additional attack vectors. Additionally, implementing a web application firewall (WAF) can help filter out malicious requests.

Conclusion

The Stored XSS vulnerability in WordPress poses significant risks to users and site integrity. It is crucial to update to the latest patched version to safeguard against potential attacks. Regular monitoring and proactive security measures can help maintain the security of your WordPress installation.

See every vulnerability recorded for wordpress →

Share this vulnerability

FAQ

Stored XSS is a type of security vulnerability that allows an attacker to inject malicious scripts into web pages that are then stored on the server. When users visit the affected page, the script executes in their browsers.

If you are using WordPress versions from 5.9 to 6.5.4, your site may be vulnerable. You can check your version in the WordPress admin dashboard or by using tools like Vulert.

The risks include data theft, unauthorized access to user accounts, and potential defacement of the website, which can harm your site's reputation and user trust.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software by analyzing a manifest file like package-lock.json.

If an immediate update is not possible, consider implementing security measures such as a web application firewall and disabling unused plugins to mitigate risks.

Related vulnerabilities

Recent vulnerabilities recorded for wordpress.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

6.5.5+dfsg1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade wordpress

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback