CVE-2019-16781 MEDIUM

CVE-2019-16781: Stored cross-site scripting (XSS) in WordPress block editor

Vendor Wordpress
Product WordPress
Weakness CWE-79 · XSS
Published December 26, 2019
Last update August 5, 2024

CVSS base score

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

CVSS vector

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

What the vulnerability does

01Description

In WordPress before 5.3.1, authenticated users with lower privileges (like contributors) can inject JavaScript code in the block editor, which is executed within the dashboard. It can lead to an admin opening the affected post in the editor leading to XSS.

Explanation of Vulnerability in Simple Terms

02Summary

WordPress versions before 5.3.1 contain a cross-site scripting vulnerability in the block editor. An attacker with low-level user access can inject malicious scripts that execute in other users' browsers when they view or edit affected content. The vulnerability requires the victim to interact with a specially crafted block or page. This can lead to session hijacking, credential theft, or unauthorized actions performed on behalf of the victim.

What an attacker can do

03Attacker Capabilities

Inject JavaScript that runs in other users' browsers, potentially stealing sessions or performing actions as those users.

Potential impact on your site

04Site Impact

Users with low-privilege accounts can compromise higher-privilege users' sessions or perform unauthorized actions on the site.

Conditions required to exploit

05Prerequisites

Attacker needs a low-privilege WordPress account (contributor or higher). Victim must view or interact with the malicious content.

Key dates

06Disclosure timeline

December 26, 2019 CVE published
August 5, 2024 Record updated

Related vulnerabilities

08Related CVE