{"schemaVersion":3,"id":"CVE-2021-39202","aliases":["UBUNTU-CVE-2021-39202"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-09-09T21:55:11.000Z","modified":"2024-08-04T01:58:18.268Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.6,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":5.9,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":3.5,"severity":"low","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"wordfence","score":7.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0082,"percentile":0.56517,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0082},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0082,"percentile":0.56517}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0082,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0082,"percentile":0.56517}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"ubuntu","product":"wordpress","name":"wordpress","label":"wordpress","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/wordpress","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wordpress","product":"wordpress","name":"WordPress","label":"wordpress","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.8 beta 1, ≤ 5.8 beta 2 (fixed in 5.8)","noFixRecorded":false,"fixedIn":"5.8"}],"versionsText":"≥ 5.8 beta 1, ≤ 5.8 beta 2 (fixed in 5.8)","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"wordpress","label":"WordPress","category":"server-app"}},"hubHref":null},{"vendor":"wordpress","product":"wordpress","name":"wordpress","label":"wordpress","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"5.8:beta1","noFixRecorded":false,"fixedIn":null},{"text":"5.8:beta2","noFixRecorded":false,"fixedIn":null}],"versionsText":"5.8:beta1 | 5.8:beta2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"wordpress","label":"WordPress","category":"server-app"}},"hubHref":"/vendor/wordpress/wordpress"},{"vendor":"wordpress","product":"wordpress-develop","name":"wordpress-develop","label":"wordpress-develop","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"5.8 beta 1","noFixRecorded":false,"fixedIn":null},{"text":"5.8 beta 2","noFixRecorded":false,"fixedIn":null}],"versionsText":"5.8 beta 1 | 5.8 beta 2","eol":null,"hubHref":"/vendor/wordpress/wordpress-develop"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-fr6h-3855-j297","label":"github.com/WordPress/wordpress-develop/security/advisories/GHSA-fr6h-3855-j297","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Third Party Advisory"]},{"url":"https://hackerone.com/reports/1222797","label":"hackerone.com/reports/1222797","hostname":"hackerone.com","tags":["X Refsource MISC","REPORT","Permissions Required"]},{"url":"https://ubuntu.com/security/CVE-2021-39202","label":"ubuntu.com/security/CVE-2021-39202","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-39202","label":"www.cve.org/CVERecord?id=CVE-2021-39202","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/ba4aabcc-9db8-4385-90c2-58ed93df8f9d","label":"www.wordfence.com/threat-intel/vulnerabilities/id/ba4aabcc-9db8-4385-90c2-58ed93df8f9d","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-09-09T21:55:11.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T01:58:18.268Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T12:18:40.298Z","stale":false,"partial":false}}