All vulnerabilities

WordPress core

CVE-2019-16781

Authenticated cross-site scripting (XSS) in WordPress block editor (within dashboard)

Severity
Medium 5.4
Published
20 Dec 2019
Last changed
17 Jun 2026
Added to UpHeron
17 Oct 2026
Fixed in
5.3.1
Also known as
GHSA-pg4x-64rh-3c9v
Sources
NVD, WordPress

Description

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.

Affected software

SoftwareAffected versions
WordPressWordPress core · cpe:a:wordpress:wordpress
  • Every version before 5.3.1
  • Version 5.0.7
  • Version 5.1.3
  • Version 5.2.4
  • Version 5.3.0

References