WordPress Core 5.8 beta - Stored Cross-Site Scripting in Custom HTML Block

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2021-39202
CVSS 7.6 (High)
Publicly Published September 9, 2021
Last Updated February 12, 2024
Researcher Evan Ricafort - Invalid Web Security


WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. In affected versions the widgets editor introduced in WordPress 5.8 beta 1 has improper handling of HTML input in the Custom HTML feature. This leads to stored XSS in the custom HTML widget. This has been patched in WordPress 5.8. It was only present during the testing/beta phase of WordPress 5.8.



1 affected software package

Software Type Core
Patched? Yes
Remediation Update to version 5.8, or a newer patched version
Affected Version
  • 5.8 beta 1 - 5.8 beta 2
Patched Version
  • 5.8

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.