CVE-2025-58365 XWiki Blog Application: Privilege Escalation (PR) from account through blog content
Attackers with edit rights can execute arbitrary code via blog post content, leading to privilege escalation and remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-58365?
CVE-2025-58365 is a high-severity code injection vulnerability in xwiki-contrib application-blog, published on 8 Sep 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The XWiki blog application allows users of the XWiki platform to create and manage blog posts. Prior to version 9.14, the blog application in XWiki allowed remote code execution for any user who has edit right on any page. Normally, these are all logged-in users as they can edit their own user profile. For an exploit, it is sufficient to add an object of type `Blog.BlogPostClass` to any page and to add some script macro with the exploit code to the "Content" field of that object. The vulnerability has been patched in the blog application version 9.14 by executing the content of blog posts with the rights of the appropriate author. No known workarounds are available.
Weakness: CWE-95
Which versions are affected by CVE-2025-58365?
2 open source packages ship an affected version, including org.xwiki.contrib.blog:application-blog-ui.
| Package | Affected | Fixed in |
|---|---|---|
org.xwiki.contrib.blog:application-blog-ui Maven | All versions | 9.14 |
org.xwiki.contrib.blog:application-blog-ui Maven | All versions | 9.14 |
How do I fix CVE-2025-58365?
Upgrade org.xwiki.contrib.blog:application-blog-ui to 9.14 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-58365 being exploited?
There is no known exploitation of CVE-2025-58365 in the wild and no public exploit code.
Sources
Also known as GHSA-gwj6-xpfg-pxwr.