LiveActive security incident?Get immediate response
CVE Record

CVE-2021-39201: Authenticated cross-site scripting (XSS) in WordPress editor

WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. ### Impact The issue allows an authenticated but low-privileged user (like contributor/author) to execute XSS in the editor. This bypasses the restrictions imposed on users who do not have the permission to post `unfiltered_html`. ### Patches This has been patched in WordPress 5.8, and will be pushed to older versions via minor releases (automatic updates). It's strongly recommended that you keep auto-updates enabled to receive the fix. ### References https://wordpress.org/news/category/releases/ https://hackerone.com/reports/1142140 ### For more information If you have any questions or comments about this advisory: * Open an issue in [HackerOne](https://hackerone.com/wordpress)

HighCVSS 7.6Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-39201 lets a low-privileged authenticated WordPress user, such as a contributor or author, trigger cross-site scripting in the editor. It matters most for sites with many content accounts or untrusted contributors. WordPress patched it in 5.8 and planned backports through minor releases.

Executive priority

Treat as high priority for internet-facing WordPress sites with multiple content users. The risk is not unauthenticated takeover, but it can let a lower-privileged account bypass HTML safety controls and affect other users through the editor. Patch through normal WordPress update channels promptly.

Technical view

This is a CWE-79 XSS issue in WordPress versions 5.0 to before 5.8.0. It bypasses restrictions for users lacking the unfiltered_html capability, allowing authenticated low-privileged users to execute XSS in the editor. CVSS 3.1 is 7.6 with low complexity, low privileges required, user interaction required, and changed scope.

Likely exposure

Exposure is likely on WordPress sites running core versions 5.0 through before 5.8.0, especially where contributor or author accounts are available to contractors, community users, or other less-trusted users. Debian-packaged WordPress environments should also check DSA-4985.

Exploitation context

The supplied sources do not state active exploitation, and the CVE is not marked in KEV. Public vulnerability details exist through HackerOne and the GitHub advisory. Exploitation requires authenticated low-privileged editor access and user interaction, so account governance affects practical risk.

Researcher notes

Evidence identifies WordPress core, versions 5.0 to before 5.8.0, with CVSS 7.6 and CWE-79. The key security boundary is unfiltered_html enforcement for low-privileged users. The bundle does not provide verified in-the-wild exploitation or detailed exploit mechanics, so validation should focus on version and role exposure.

Mitigation direction

  • Upgrade WordPress to 5.8 or later, or apply vendor backported minor releases.
  • Keep WordPress automatic updates enabled to receive the fix.
  • Review Debian DSA-4985 guidance for Debian-packaged WordPress systems.
  • Restrict contributor and author access to trusted users until patched.
  • Monitor WordPress release advisories for environment-specific update guidance.

Validation and detection

  • Inventory WordPress core versions and flag 5.0 through before 5.8.0.
  • Confirm WordPress 5.8 or a patched minor release is deployed.
  • Verify automatic core updates are enabled where operationally permitted.
  • Review contributor and author accounts with editor access.
  • Check Debian package status against DSA-4985 where applicable.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Database behavior lookup

The CVE wording references database injection or access, so collection and exfiltration review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-39201 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.6 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.6CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N2.34.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.6High
CVSS 3.1 vector shape for CVE-2021-39201Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
WordPresswordpress-develop>= 5.0, < 5.8.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.