CVE-2019-16781 Stored cross-site scripting (XSS) in WordPress block editor
Authenticated low-privilege users can inject JavaScript into the block editor, leading to XSS when an admin views the post.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2019-16781?
CVE-2019-16781 is a medium-severity cross-site scripting vulnerability in Debian Debian Linux, published on 26 Dec 2019. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2019-16781?
It affects 2 products.
Products include Debian Debian Linux, Wordpress Wordpress.
How do I fix CVE-2019-16781?
Upgrade to a fixed version.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2019-16781 being exploited?
There is no known exploitation of CVE-2019-16781 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2019-16781, GHSA-pg4x-64rh-3c9v, UBUNTU-CVE-2019-16781.