WordPress Core <= 7.1 - HTML API set_modifiable_text() Comment Boundary Break

3.7
Improper Encoding or Escaping of Output
CVSS 3.7 (Low)
Publicly Published September 17, 2026
Last Updated September 17, 2026
Researcher Jeremy Felt

Description

WordPress Core's HTML API WP_HTML_Tag_Processor::set_modifiable_text() (since 6.7.0) used an incomplete comment-closer guard (/--!?>/) that missed the '-?>' abrupt-closing form, allowing text set into an HTML comment node to terminate the comment early. This is developer-facing hardening; there is no first-party sink that turns it into a direct vulnerability. Impact is realized only in plugin/theme code that round-trips attacker-controlled text through the HTML API into a comment node.

References

Share

Vulnerability Details for WordPress

Software Type Core
Patched? Yes
Remediation Update to one of the following versions, or a newer patched version: 6.7.8, 6.8.9, 6.9.8, 7.0.5, 7.1.1
Affected Versions
  • 7.1
  • 6.7 - 6.7.7
  • 6.8 - 6.8.8
  • 6.9 - 6.9.7
Expand to see 1 more affected version range.
  • 7.0 - 7.0.4
Patched Versions
  • 6.7.8
  • 6.8.9
  • 6.9.8
  • 7.0.5
Expand to see 1 more patched version.
  • 7.1.1

Recent vulnerabilities in WordPress

# Title CVE ID CVSS Researchers Date
1 WordPress Core 6.6.0 - 7.1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Unsafe Interactivity API Binding Properties 6.4 Alex Concha, Jon Surrell, rekter0, Marcel Karlsson October 29, 2026
2 WordPress Core 4.7.0 - 7.1.3 - Authenticated (Custom+) Stored Cross-Site Scripting via Externally-Supplied User Login Values 4.9 Anthropic October 29, 2026
3 WordPress Core 6.4.0 - 7.1.3 - Authenticated (Contributor+) Stored Denial of Service via Malformed Interactivity API Bindings 3.5 Jon Surrell October 29, 2026
4 WordPress Core 5.0.0 - 7.1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Customizer Selective Refresh 6.4 Rafie Muhammad October 29, 2026
5 WordPress Core 6.4.0 - 7.1.3 - Authenticated (Author+) Stored Cross-Site Scripting via Interactivity Router Uploaded Text Files 6.4 Anas cherni October 29, 2026
6 WordPress Core 5.0.0 - 7.1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Non-HTML Whitespace in Block Delimiters 6.4 Rafie Muhammad October 29, 2026
7 WordPress Core 4.9.0 - 7.1.3 - Unauthenticated Sensitive Information Exposure via Customizer Changesets 5.3 Antonio Lorensius Silaban October 29, 2026
8 WordPress Core 5.9.0 - 7.1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Navigation Block Labels 6.4 Alex Concha October 29, 2026
9 WordPress Core 6.6.0 - 7.1.3 - Authenticated (Contributor+) Clickjacking via Interactivity API Object Bindings 3.5 rekter0 October 29, 2026
10 WordPress Core 6.6.0 - 7.1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Interactivity API URL Bindings 6.4 Luis Herranz October 29, 2026

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation