Vulnerabilities in pkg:maven/org.xwiki.contrib.jira/jira-macro-default
PACKAGECVE-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.
pkg:maven/org.xwiki.contrib.jira/jira-macro-default
Vulnerability advisories affecting package pkg:maven/org.xwiki.contrib.jira/jira-macro-default. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-wc53-4255-gw3f | CVE-2025-31487 | HIGH | The XWiki JIRA extension allows data leak through an XXE attack by using a fake JIRA server |
CVE-2025-31487 at a Glance
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).
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.
<dependency>
<groupId>org.xwiki.contrib.jira</groupId>
<artifactId>jira-macro-default</artifactId>
<version>8.5.6</version>
</dependency>
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
CVE-2025-31487 Affected Jira macro default Versions
1 component(s)| 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?
Which Jira macro default versions are affected?
What version fixes CVE-2025-31487?
Is jira-macro-default affected?
What is the CVSS score of CVE-2025-31487?
What CWE is associated with CVE-2025-31487?
How can I check Maven dependencies for CVE-2025-31487?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}