WordPress Core <= 7.1 — Authenticated (Administrator+) Stored Cross-Site Scripting via Custom Header Image Data
3d59700b-3540-464c-bd27-23bb71f9b082Published · 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
- 3d59700b-3540-464c-bd27-23bb71f9b082
- 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
- Weakness
- CWE-79 Cross-Site Scripting
- Required access
- Unknown
- Published
- · updated
- Credit
- Jeremy Felt
- 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:H/PR:H/UI:N/S:C/C:L/I:L/A:NWhat does this vector mean?
AV:NAttack vector- Network
AC:HAttack complexity- High
PR:HPrivileges required- High
UI:NUser interaction- None
S:CScope- Changed
C:LConfidentiality- Low
I:LIntegrity- Low
A:NAvailability- None
WordPress Core is vulnerable to Stored Cross-Site Scripting via the custom header 'header_image_data' theme mod in various versions up to, and including, 7.1 due to insufficient sanitization of the header image width/height/URL values and an unescaped style attribute in the custom-header admin screen. get_custom_header() returned width/height without integer casting and Custom_Image_Header::step_1() echoed the style string without escaping. This makes it possible for authenticated attackers with edit_theme_options capability to inject web scripts; primarily relevant on Multisite where site administrators lack unfiltered_html.
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
Related CVEs
| Severity | Vulnerability | CVE | Published |
|---|---|---|---|
| High7.2 | Unauthenticated Stored DOM-Based Cross-Site Scripting via Image Alt Attribute in .wp-caption Containers | CVE-2026-120687 | |
| Medium6.4 | Authenticated (Subscriber+) Stored Cross-Site Scripting via 'Popup' Shortcode Attribute via Profile Video | CVE-2026-110531 | |
| Medium5.4 | Unauthenticated Stored Cross-Site Scripting via 'title' Attribute of [bf_login_form] Shortcode | CVE-2026-127115 | |
| High7.2 | Unauthenticated Stored Cross-Site Scripting via Multipart Field Name | CVE-2026-116753 |
- High7.2Unauthenticated Stored DOM-Based Cross-Site Scripting via Image Alt Attribute in .wp-caption Containers
Lightbox & Modal Popup WordPress Plugin – FooBox
≤2.8.7Update to 2.8.8
- Medium6.4Authenticated (Subscriber+) Stored Cross-Site Scripting via 'Popup' Shortcode Attribute via Profile Video
FV Player 8
≤8.1.9Update to 8.2.0
- Medium5.4Unauthenticated Stored Cross-Site Scripting via 'title' Attribute of [bf_login_form] Shortcode
BuddyForms
≤2.10.6Update to 2.10.7
- High7.2Unauthenticated Stored Cross-Site Scripting via Multipart Field Name
Multi Step for Contact Form 7
≤2.9.1Update to 2.9.2
Timeline
CVE published
Severity medium, CVSS 4.4
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.
