WordPress <= 6.9.1 - Cross-Site Scripting via Client-Side Template Override in Admin Area
WordPress core is vulnerable to Cross-Site Scripting via client-side template overriding in the admin area in all versions up to and including 6.9.1. The wp.template() JavaScript function uses document.getElementById() to locate templates, which matches any HTML element by ID regardless of element type. WordPress admin templates are intended to be <script type="text/html" id="tmpl-*"> elements, but getElementById also matches <div>, <img>, and other injected elements. If an attacker can inject a non-script element with a matching tmpl-* ID, the template content is overridden with attacker-controlled HTML, which is then compiled by Underscore.js _.template() with JavaScript execution support. This is a conditional vulnerability that requires an existing HTML injection vector in the admin context.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| WordPress (core) | WordPress | >= 6.8, <= 6.8.3, >= 6.9, <= 6.9.1 | 6.8.4, 6.9.2 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-79- Platform
- WordPress
- Package
WordPress- Disclosed
- 10.03.2026
- Updated
- 11.10.2026 10:22
Sources and licenses
Wordfence Intelligence - 72273368-042d-4ad4-9d1d-ca9c6db9cf3b - Wordfence Intelligence
Copyright 2012-2026 Defiant Inc.
This record contains material that is subject to copyright
Copyright 2012-2026 Defiant Inc.
Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.
https://www.wordfence.com/wordfence-intelligence-terms-and-conditions/Wordfence Intelligence
Wordfence Intelligence - Defiant, Inc. Copyright Defiant, Inc. All rights reserved except as granted below. License grant, section 3.1 of the Wordfence Intelligence Terms and Conditions (January 26, 2026): Subject to this Agreement, Company hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute the Service. Any copy you make for such purposes is authorized provided that you reproduce Company’s copyright designation, this license, and the license of any disclosed Company licensor in any such copy. Full applicable Agreement: https://www.wordfence.com/wordfence-intelligence-terms-and-conditions/
Vulnerability history: WordPress
All published vulnerabilities of this package (WordPress (core)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 385
- First → latest
- 06.2003 10.2026
- Without a fix
- 0
- Exploited in attacks
- 3
Severity breakdown
- Critical 16
- High 95
- Medium 263
- Low 11
Disclosures per year
- 2017: 39
- 2018: 15
- 2019: 22
- 2020: 23
- 2021: 5
- 2022: 20
- 2023: 14
- 2024: 4
- 2025: 2
- 2026: 36
earlier: 205
-
WordPress <= 6.9.1 - Cross-Site Scripting via Client-Side Template Override in Admin Area this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.