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
| Software | Affected versions |
|---|---|
WordPressWordPress core · cpe:a:wordpress:wordpress |
|
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2019-16781
- CVE.org https://www.cve.org/CVERecord?id=CVE-2019-16781
- GitHub Advisory Database https://github.com/advisories/GHSA-pg4x-64rh-3c9v
- WordPress security advisory https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-pg4x-64rh-3c9v