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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-09-09 · Modified: 2024-08-04
- Aliases: UBUNTU-CVE-2021-39202
- Record: https://cvemate.com/vulnerability/CVE-2021-39202 · JSON: https://cvemate.com/vulnerability/CVE-2021-39202/json

## Description

```text
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.
```

## Signals

- CVSS: 7.6 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
- EPSS: 0.82%, percentile 58.558%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu wordpress (Ubuntu): All versions (No fix recorded)
- wordpress wordpress: ≥ 5.8 beta 1, ≤ 5.8 beta 2 (fixed in 5.8)
- wordpress wordpress: 5.8:beta1 \| 5.8:beta2
- wordpress wordpress-develop: 5.8 beta 1 \| 5.8 beta 2

## References

- <https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-fr6h-3855-j297>
- <https://hackerone.com/reports/1222797>
- <https://ubuntu.com/security/CVE-2021-39202>
- <https://www.cve.org/CVERecord?id=CVE-2021-39202>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/ba4aabcc-9db8-4385-90c2-58ed93df8f9d>

---

Data as of 2026-12-05T04:45:18.706Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
