CVE-2021-39202 HIGH

CVE-2021-39202: WordPress 5.8 beta: Stored Cross-Site Scripting (XSS) vulnerability in widget

Vendor Wordpress
Product wordpress-develop
Weakness CWE-79 · XSS
Published September 9, 2021
Last update August 4, 2024

CVSS base score

7.6/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction Required
Confidentiality High
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

WordPress 5.8 beta 1 contains a stored cross-site scripting (XSS) vulnerability in the block editor. An authenticated user with low privileges can inject malicious scripts into block content that execute in the browsers of other users, including administrators. The vulnerability requires user interaction—victims must view the affected block—but can compromise site security and user data.

What an attacker can do

03Attacker Capabilities

Inject malicious scripts that run in other users' browsers when they view affected content.

Potential impact on your site

04Site Impact

Attackers with contributor or author access can steal admin credentials, modify site content, or compromise visitor data.

Conditions required to exploit

05Prerequisites

Attacker must have a low-privilege WordPress account and the victim must view the page containing the malicious block.

Key dates

06Disclosure timeline

September 9, 2021 CVE published
August 4, 2024 Record updated

Related vulnerabilities

08Related CVE