# CVE-2021-39202: WordPress 5.8 beta: Stored Cross-Site Scripting (XSS) vulnerability in widget

- Severity: High 7.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/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): 0.82%, higher than 58% of CVEs (2026-12-01)
- Published: 2021-09-09T21:55:11.000Z
- Modified: 2026-06-17T04:03:18.210Z
- Also known as: BIT-WORDPRESS-2021-39202, BIT-WORDPRESS-MULTISITE-2021-39202, GHSA-fr6h-3855-j297
- Weaknesses: CWE-79
- Assigned by: GitHub_M

## Description

WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. In affected versions the widgets editor introduced in WordPress 5.8 beta 1 has improper handling of HTML input in the Custom HTML feature. This leads to stored XSS in the custom HTML widget. This has been patched in WordPress 5.8. It was only present during the testing/beta phase of WordPress 5.8.

(As written by CVE List.)

## Affected

- WordPress wordpress-develop: 5.8 beta 1; 5.8 beta 2
- wordpress wordpress: 5.8
- wordpress (Bitnami): from 5.8-beta1.0 up to 5.8-beta1.0; from 5.8-beta2.0 up to 5.8-beta2.0
- wordpress-multisite (Bitnami): from 5.8-beta1.0 up to 5.8-beta1.0; from 5.8-beta2.0 up to 5.8-beta2.0

## Every score

- GitHub_M: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/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`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-fr6h-3855-j297> (third-party-advisory, web)
- <https://hackerone.com/reports/1222797> (permissions-required, web)

## Sources

- CVE List: [CVE-2021-39202](https://www.cve.org/CVERecord?id=CVE-2021-39202), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-39202](https://nvd.nist.gov/vuln/detail/CVE-2021-39202), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-WORDPRESS-2021-39202](https://osv.dev/vulnerability/BIT-WORDPRESS-2021-39202), Apache-2.0, modified 2026-03-13
- Bitnami Vulnerability Database: [BIT-WORDPRESS-MULTISITE-2021-39202](https://osv.dev/vulnerability/BIT-WORDPRESS-MULTISITE-2021-39202), Apache-2.0, modified 2026-03-13

---

Page: https://cve.day/CVE-2021-39202 · Whole record: https://cve.day/CVE-2021-39202.json · Rebuilt by cve.day 2026-11-25T22:58:03.875Z
