XSS in WordPress
A potential cross-site scripting issue was reported in the WordPress post editor, where entering crafted HTML in the Text tab and switching to the Visual tab could trigger script execution. The report claims this affects the latest version of WordPress and millions of self-hosted and hosted users.
- Triaged in 13 days
- Fixed in 36 days
- Paid in 36 days
- Disclosed after 2 months
Summary by the researcher
This potential XSS affects millions of WordPress users using Self-Hosted WP or either WP .
The report
Hi there ,
I have identified a WordPress security vulnerability , a potential XSS vulnerability that affects latest version of WordPress .
POC :-
Go to GET *****.wordpress.com/wp-admin/post-new.php
In Text (HTML Field) input , <HTML xmlns: ><audio> <audio src=wp onerror=alert(0X1)>
Now, Click on Visual Tab , XSS will trigger . (Screenshot attached )
Thanks and please address this issue .
Attachments

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the editor's text-to-visual conversion does not properly sanitise HTML input before rendering it.
Impact
The report shows a self-triggered alert in the editor, with no demonstrated impact on other users.
What the attacker needed
Access to the WordPress post editor
How it was found
- Open the new post page in the WordPress admin.
- Enter crafted HTML containing an audio element with an error handler in the Text tab.
- Switch to the Visual tab, which triggers the script.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website displays user-supplied content without properly neutralising it, so a malicious script runs in another visitor's browser. Here, the researcher says that typing special HTML into the editor's text mode and then switching to visual mode causes a script to run. That could let an attacker run code in the context of the site, but the report gives very little detail.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.