CVE-2025-58365: XWiki Blog Application Privilege Escalation (PR) From Account Vulnerability

HIGH
Advisory Identifier: GHSA-gwj6-xpfg-pxwr
CWE-94 CWE-250 CWE-95
Published
Advisory Summary

CVE-2025-58365 is a HIGH privilege escalation (pr) from account vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting XWiki Blog Application libraries in the Maven ecosystem. The issue involves privilege escalation (pr) from account through blog content. Remediation is available by upgrading affected packages to version 9.14.

CVE-2025-58365 at a Glance

CVE Identifier CVE-2025-58365
GHSA Identifier GHSA-gwj6-xpfg-pxwr
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product XWiki Blog Application
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-58365

To remediate this vulnerability, upgrade all affected XWiki Blog Application dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.xwiki.contrib.blog:application-blog-ui fixed: 9.14
<dependency>
    <groupId>org.xwiki.contrib.blog</groupId>
    <artifactId>application-blog-ui</artifactId>
    <version>9.14</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.xwiki.contrib.blog

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-58365, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.xwiki.contrib.blog

Analyze the terminal output to locate any version of XWiki Blog Application in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.14), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.xwiki.contrib.blog command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In XWiki Blog Application, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact 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. To 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. ### Patches 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. ### Workarounds We're not aware of any workarounds. ### Resources * https://jira.xwiki.org/browse/BLOG-191 * https://github.com/xwiki-contrib/application-blog/commit/b98ab6f17da3029576f42d12b4442cd555c7e0b4

CVE-2025-58365 Affected XWiki Blog Application Versions

1 component(s)
Fixed Versions:
9.14
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.contrib.blog:application-blog-ui
Maven
< 9.14
9.14

References

Frequently Asked Questions

What is CVE-2025-58365?
CVE-2025-58365 is a security vulnerability in XWiki Blog Application involving Privilege Escalation (PR) from account through blog content under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which XWiki Blog Application versions are affected?
Affected versions include releases prior to 9.14 across affected packages: org.xwiki.contrib.blog:application-blog-ui.
What version fixes CVE-2025-58365?
Upgrading to 9.14 (or the latest patched release for your respective branch) resolves the vulnerability.
Is application-blog-ui affected?
Yes, org.xwiki.contrib.blog:application-blog-ui is affected in releases prior to 9.14. Upgrade your dependency to 9.14 or later.
What CWE is associated with CVE-2025-58365?
CVE-2025-58365 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Maven dependencies for CVE-2025-58365?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.contrib.blog'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gwj6-xpfg-pxwr",
  "modified" : "2025-09-10T21:05:21Z",
  "published" : "2025-09-08T20:59:47Z",
  "aliases" : [ "CVE-2025-58365" ],
  "summary" : "XWiki Blog Application: Privilege Escalation (PR) from account through blog content",
  "details" : "### Impact\nThe 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. To 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.\n\n### Patches\nThe 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.\n\n### Workarounds\nWe're not aware of any workarounds.\n\n### Resources\n* https://jira.xwiki.org/browse/BLOG-191\n* https://github.com/xwiki-contrib/application-blog/commit/b98ab6f17da3029576f42d12b4442cd555c7e0b4",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.contrib.blog:application-blog-ui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "9.14"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xwiki-contrib/application-blog/security/advisories/GHSA-gwj6-xpfg-pxwr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-58365"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki-contrib/application-blog/commit/b98ab6f17da3029576f42d12b4442cd555c7e0b4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xwiki-contrib/application-blog"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/BLOG-191"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-250", "CWE-94", "CWE-95" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-08T20:59:47Z",
    "nvd_published_at" : "2025-09-08T22:15:34Z"
  }
}