CVE-2019-16780: WordPress users with lower privileges (like contributors) can inject JavaScript code in the block editor using a specific payload, which is executed within the dashboard.
Medium CVSS 5.4
- CVE id
- CVE-2019-16780
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| WordPress Runtimes and servers |
>= 3.7, < 5.3.1 >= 3.7, < 3.8 |
3.8, 5.3.1 |
How to fix it
Upgrade WordPress to the fixed release of the line you run: 3.8, 5.3.1.
wp core version
- Update WordPress core to the patched release (Dashboard > Updates, wp core update, or the wordpress image tag).
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
WordPress users with lower privileges (like contributors) can inject JavaScript code in the block editor using a specific payload, which is executed within the dashboard. This can lead to XSS if an admin opens the post in the editor. Execution of this attack does require an authenticated user. This has been patched in WordPress 5.3.1, along with all the previous WordPress versions from 3.7 to 5.3 via a minor release. Automatic updates are enabled by default for minor releases and we strongly recommend that you keep them enabled.
References
- CVE-2019-16780 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2019-16780
- Web: https://github.com/WordPress/wordpress-develop/commit/505dd6a20b6fc3d06130018c1caeff764248c29e
- Web: https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-x3wp-h3qx-9w94
- Web: https://hackerone.com/reports/738644
- Web: https://seclists.org/bugtraq/2020/Jan/8
- Web: https://wordpress.org/news/2019/12/wordpress-5-3-1-security-and-maintenance-release/
- Web: https://wpvulndb.com/vulnerabilities/9976
- Web: https://www.debian.org/security/2020/dsa-4599
- Web: https://www.debian.org/security/2020/dsa-4677
- Web: https://github.com/WordPress/wordpress-develop/commit/505dd6a20b6fc3d06130018c1caeff764248c29e
- Web: https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-x3wp-h3qx-9w94
- Web: https://hackerone.com/reports/738644
- Web: https://seclists.org/bugtraq/2020/Jan/8
- Web: https://wordpress.org/news/2019/12/wordpress-5-3-1-security-and-maintenance-release/
- Web: https://wpvulndb.com/vulnerabilities/9976
- Web: https://www.debian.org/security/2020/dsa-4599
- Web: https://www.debian.org/security/2020/dsa-4677
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.