CVE-2025–4406 Writeup: Stored XSS on wpForo Forum
The wpForo Forum plugin allowed users to upload SVG avatars, and its sanitisation using WordPress's wp_kses() failed to strip the javascript: protocol from the xlink:href attribute. An attacker could upload a malicious SVG that executes JavaScript when a victim clicks on the avatar, leading to stored XSS.
medium.com
Published on medium.com
Last May, I discovered a stored XSS vulnerability in “wpForo Forum”, a WordPress plugin with over 20,000 active installations. Similar to other forum software like XenForo and phpBB, wpForo Forum allows users to create boards and topics for discussions on various subjects.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
What the attacker needed
A forum account; three approved posts; victim clicks the avatar
How it was found
- Register as a forum user on a site with a vulnerable wpForo Forum version.
- Submit three posts and get them approved by a moderator to gain profile editing permission.
- Upload an SVG avatar that contains a link with a javascript: payload in the xlink:href attribute.
- Open the uploaded avatar image in a new tab.
- Click the red circle in the SVG to trigger the XSS popup.
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 write-up has not been written yet. The Original tab links to the source.
A stored cross-site scripting (XSS) flaw lets an attacker save harmful code on a website, which then runs in other users' browsers. Here, the forum let people upload picture files (SVGs) as avatars, but the cleaning step missed a way to hide a script inside a link. When someone clicked the avatar, the script ran.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.