CVE-2025-31487: Jira macro default The XWiki JIRA Extension Allows Vulnerability

HIGH
Advisory Identifier: GHSA-wc53-4255-gw3f
CVSS 7.7
CWE-611
Published
Advisory Summary

CVE-2025-31487 is a HIGH (CVSS 7.7) the xwiki jira extension allows vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Jira macro default libraries in the Maven ecosystem. The issue involves the xwiki jira extension allows data leak through an xxe attack by using a fake jira server. Remediation is available by upgrading affected packages to version 8.5.6.

CVE-2025-31487 at a Glance

CVE Identifier CVE-2025-31487
GHSA Identifier GHSA-wc53-4255-gw3f
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Jira macro default
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-31487

To remediate this vulnerability, upgrade all affected Jira macro default 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.jira:jira-macro-default fixed: 8.5.6
<dependency>
    <groupId>org.xwiki.contrib.jira</groupId>
    <artifactId>jira-macro-default</artifactId>
    <version>8.5.6</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.jira

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.xwiki.contrib.jira 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-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Jira macro default, 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 If the JIRA macro is installed, any logged in XWiki user could edit his/her user profile wiki page and use that JIRA macro, specifying a fake JIRA URL that returns an XML specifying a DOCTYPE pointing to a local file on the XWiki server host and displaying that file's content in one of the returned JIRA fields (such as the summary or description for example). For example: ``` <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE foo [ <!ENTITY xxe SYSTEM "file:///etc/passwd"> ]> <rss version="0.92"> ... <item> <title>&xxe;</title> <link>https://jira.xwiki.org/browse/XE-307</link> <project id="10222" key="XE">{RETIRED} XWiki Enterprise</project> <description>&xxe;</description> <environment/> ... ``` ### Patches The vulnerability has been patched in the JIRA Extension v8.6.5. ### Workarounds No easy workaround except to upgrade (which is easy using the XWiki Extension Manager). ### References * https://github.com/xwiki-contrib/jira/commit/98a74c2a516b42689c73b13ecd94e9c1998fa9cb and https://github.com/xwiki-contrib/jira/commit/5049e352d16f8356734de70daf1202301f170ee6 * https://jira.xwiki.org/browse/JIRA-49 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira XWiki.org](https://jira.xwiki.org/) * Email us at [Security Mailing List](mailto:security@xwiki.org)

CVE-2025-31487 Affected Jira macro default Versions

1 component(s)
Fixed Versions:
8.5.6
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.contrib.jira:jira-macro-default
Maven
≥ 4.2
< 8.5.6
8.5.6

References

Frequently Asked Questions

What is CVE-2025-31487?
CVE-2025-31487 is a security vulnerability in Jira macro default involving The XWiki JIRA extension allows data leak through an XXE attack by using a fake JIRA server under CWE-611: Improper Restriction of XML External Entity Reference.
Which Jira macro default versions are affected?
Affected versions include releases prior to 8.5.6 across affected packages: org.xwiki.contrib.jira:jira-macro-default.
What version fixes CVE-2025-31487?
Upgrading to 8.5.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jira-macro-default affected?
Yes, org.xwiki.contrib.jira:jira-macro-default is affected in releases prior to 8.5.6. Upgrade your dependency to 8.5.6 or later.
What is the CVSS score of CVE-2025-31487?
CVE-2025-31487 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2025-31487?
CVE-2025-31487 is classified under CWE-611: Improper Restriction of XML External Entity Reference (The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.).
How can I check Maven dependencies for CVE-2025-31487?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.contrib.jira'. 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-wc53-4255-gw3f",
  "modified" : "2025-04-04T14:20:18Z",
  "published" : "2025-04-04T14:20:18Z",
  "aliases" : [ "CVE-2025-31487" ],
  "summary" : "The XWiki JIRA extension allows data leak through an XXE attack by using a fake JIRA server",
  "details" : "### Impact\nIf the JIRA macro is installed, any logged in XWiki user could edit his/her user profile wiki page and use that JIRA macro, specifying a fake JIRA URL that returns an XML specifying a DOCTYPE pointing to a local file on the XWiki server host and displaying that file's content in one of the returned JIRA fields (such as the summary or description for example).\n\nFor example:\n\n```\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE foo [ <!ENTITY xxe SYSTEM \"file:///etc/passwd\"> ]>\n<rss version=\"0.92\">\n...\n    <item>\n      <title>&xxe;</title>\n      <link>https://jira.xwiki.org/browse/XE-307</link>\n      <project id=\"10222\" key=\"XE\">{RETIRED} XWiki Enterprise</project>\n      <description>&xxe;</description>\n      <environment/>\n...\n```\n\n### Patches\nThe vulnerability has been patched in the JIRA Extension v8.6.5.\n\n### Workarounds\nNo easy workaround except to upgrade (which is easy using the XWiki Extension Manager).\n\n### References\n* https://github.com/xwiki-contrib/jira/commit/98a74c2a516b42689c73b13ecd94e9c1998fa9cb and https://github.com/xwiki-contrib/jira/commit/5049e352d16f8356734de70daf1202301f170ee6\n* https://jira.xwiki.org/browse/JIRA-49\n\n### For more information\nIf you have any questions or comments about this advisory:\n*    Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)\n*    Email us at [Security Mailing List](mailto:security@xwiki.org)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.contrib.jira:jira-macro-default"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.2"
      }, {
        "fixed" : "8.5.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xwiki-contrib/jira/security/advisories/GHSA-wc53-4255-gw3f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-31487"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki-contrib/jira/commit/5049e352d16f8356734de70daf1202301f170ee6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki-contrib/jira/commit/98a74c2a516b42689c73b13ecd94e9c1998fa9cb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xwiki-contrib/jira"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/JIRA-49"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-04T14:20:18Z",
    "nvd_published_at" : "2025-04-03T19:15:40Z"
  }
}