WordPress Core <= 7.1 — Forced Theme Install/Preview and Selector Injection via Theme Installer Route
c34ef5e3-afcd-4686-861f-5e382812233aPublished · Updated Action summary
Affected: ≤7.1Update to 6.6.8 or 6.7.8 or 6.8.9 or 6.9.8 or 7.0.5 or 7.1.1 or newer
Fixed versions are per release branch: update to the fix for the branch you run.
All remediation stepsOn this page3
Overview
- Advisory ID
- c34ef5e3-afcd-4686-861f-5e382812233a
- Product
- WordPress wordpress
- Affected
- ≤7.1
- Fixed in
- 6.6.8, 6.7.8, 6.8.9, 6.9.8, 7.0.5, 7.1.1
- Required access
- No account needed
- Published
- · updated
- Credit
- Paulos Yibelo
- Affected≤ 7.1
- Patched in6.6.8 / 6.7.8 / 6.8.9 / 6.9.8 / 7.0.5 / 7.1.1
Update to 6.6.8 / 6.7.8 / 6.8.9 / 6.9.8 / 7.0.5 / 7.1.1 or newer.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NWhat does this vector mean?
AV:NAttack vector- Network
AC:LAttack complexity- Low
PR:NPrivileges required- None
UI:RUser interaction- Required
S:UScope- Unchanged
C:NConfidentiality- None
I:LIntegrity- Low
A:NAvailability- None
WordPress Core's theme installer (theme.js RunInstaller) passed the 'theme' slug from theme-install.php?theme=<slug> into a jQuery attribute selector ($('div[data-slug="'+slug+'"]')) without escaping, and matched any element rather than only theme cards. A crafted URL can automatically install and preview an inactive WordPress.org theme and inject an arbitrary jQuery selector.
Not sure which version you run? Run a passive check — it reads public files only.
Remediation & mitigations
- Update to one of the following versions, or a newer patched version: 6.6.8, 6.7.8, 6.8.9, 6.9.8, 7.0.5, 7.1.1
- Rotate administrator passwords and application secrets if the site ran a vulnerable version while publicly reachable.
References & provenance
Proof-of-concept & detection
No public proof-of-concept or detection template is known for this vulnerability.
Advisories & patches
- Advisorywordfence.com
Timeline
CVE published
Severity medium, CVSS 4.3
Record last updated
Sources & licenses
- Vulnerability data
- Wordfence Intelligence. Copyright 2012-2026 Defiant Inc. Licensed under the CC BY-SA 4.0.
- CVSS / CWE
- National Vulnerability Database (NVD), shown unmodified. This product uses the NVD API but is not endorsed or certified by the NVD.
- VulnCrest content
- Summary, remediation guidance and page layout © VulnCrest. Not sourced from NVD.
