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

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.61%, higher than 76% of CVEs (2026-12-01)
- Published: 2019-12-26T17:00:17.000Z
- Modified: 2026-06-17T02:22:47.553Z
- Weaknesses: CWE-79
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- WordPress WordPress: from < 5.3.1 before 5.3.1; before 5.3.1
- debian debian_linux: 9.0; 10.0

## Every score

- GitHub_M: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://wpvulndb.com/vulnerabilities/9976> (third-party-advisory)
- <https://wordpress.org/news/2019/12/wordpress-5-3-1-security-and-maintenance-release/> (release-notes, third-party-advisory)
- <https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-pg4x-64rh-3c9v> (third-party-advisory)
- <https://hackerone.com/reports/731301> (permissions-required, third-party-advisory)
- <https://seclists.org/bugtraq/2020/Jan/8> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2020/dsa-4599> (third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2020/dsa-4677> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2019-16781](https://www.cve.org/CVERecord?id=CVE-2019-16781), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2019-16781](https://nvd.nist.gov/vuln/detail/CVE-2019-16781), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-16781 · Whole record: https://cve.day/CVE-2019-16781.json · Rebuilt by cve.day 2026-11-25T22:57:49.056Z
