Reflected XSS via unsanitized admin body class
Published May 10, 2023 · Updated Apr 28, 2026
Reflected XSS in WP Engine Advanced Custom Fields and Advanced Custom Fields PRO 6.1.5 and earlier allows attackers to execute browser script. The admin_body_class handler appends the post_status-derived view value to a body-class string after insufficient sanitization, and WordPress emits it without attribute escaping. The payload is reachable on a default installation, but execution requires a logged-in privileged user with ACF access to open a crafted admin URL; it can expose sensitive data or escalate site privileges.
Summary
What happened
Reflected XSS in WP Engine Advanced Custom Fields and Advanced Custom Fields PRO 6.1.5 and earlier allows attackers to execute browser script. The admin_body_class handler appends the post_status-derived view value to a body-class string after insufficient sanitization, and WordPress emits it without attribute escaping. The payload is reachable on a default installation, but execution requires a logged-in privileged user with ACF access to open a crafted admin URL; it can expose sensitive data or escalate site privileges.
The record
- CVE
- CVE-2023-30777
- Published
- May 10, 2023
- Updated
- Apr 28, 2026
- Vendor
- WP Engine
- Product
- Advanced Custom Fields
- Classifications
- CWE-79, T1204.001
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 10, 2023CVE publishedPublication date reported by the CVE source.
- Apr 28, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=n/a <=6.1.5 changes=[{"at":"6.1.6","status":"unaffected"}]
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Patchstack crafted administration URL proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo