WordPress <= 4.6.1 Stored XSS Via Theme File
A stored cross-site scripting flaw was reported in the WordPress theme installer, where a crafted theme zip could carry script. An attacker who convinced a webmaster to upload such a theme could trigger it.
- Fixed in 5 hours
- Disclosed after 10 hours
Hello Team,
Description:-
Vulnerable code is located at /wp-admin/includes/class-theme-installer-skin.php
POC:- https://nextcloud.com/readme.html

FIX:- Upgrade wordpress to latest
Refer:-
https://wpvulndb.com/vulnerabilities/8718 https://www.mehmetince.net/low-severity-wordpress/
Attack Scenario:- 1 – Attacker uploads a theme as a zip file. 2 – Webmaster who just want to download a theme and then upload, takes a theme file. 3 – And upload it without verify content of zip file.
Regards, Santhosh
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 theme installer did not sanitise or validate file contents inside the uploaded theme zip before displaying them in the admin interface.
What the attacker needed
Victim uploads a crafted theme zip
The fix
Upgrade WordPress to the latest version.
How it was found
- The attacker prepares a theme packaged as a zip file.
- The webmaster obtains the theme file intending to install it.
- The webmaster uploads the zip without checking its contents.
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.
WordPress lets an administrator install a theme by uploading a zip file. If the zip contents are not checked, a malicious theme can carry script. The attacker needs the webmaster to upload the bad theme file.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.