CVE-2025–4760: Authenticated Stored XSS Vulnerability in WSO2 A
An authenticated user with publisher privileges could upload an API document containing embedded JavaScript, which was not properly validated. When other users opened the document, the script ran in their browsers, allowing redirection, UI changes, or access to browser-accessible data.
CVE-2025–4760 is an authenticated Stored Cross-Site Scripting (XSS) vulnerability affecting multiple WSO2 products, including WSO2 API Manager. The issue arises from improper validation of uploaded API documents in the Publisher portal, allowing authenticated users with publisher privileges to inject malicious…
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
Root cause
Likely the application did not properly validate the type or content of uploaded API documents, so a file containing JavaScript was accepted and later served to other users.
Impact
An attacker could redirect users to phishing sites, change what is shown in the Publisher portal, read browser-accessible information, or act as affected users within the application, though session cookies were protected by the httpOnly flag.
What the attacker needed
Publisher privileges on WSO2 API Manager; victim opens the uploaded document
The fix
WSO2 fixed the issue by adding stricter MIME type validation during document uploads.
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.
Stored cross-site scripting (XSS) is when a website saves something harmful, like a script, and later shows it to other people. Here, someone allowed to publish API documents could upload a file with hidden JavaScript, and anyone who viewed that document would run the script in their own browser. The site should have checked the file type and contents before accepting it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.