Vulnerabilities in pkg:maven/org.xwiki.contrib.oidc/oidc-authenticator
PACKAGECVE-2025-49594 is a CRITICAL users with "view" access can vulnerability (CWE-285: Improper Authorization) affecting XWiki OIDC Authenticator libraries in the Maven ecosystem. The issue involves users with "view" access can create tokens for any users they can view. Remediation is available by upgrading affected packages to version 2.18.2.
pkg:maven/org.xwiki.contrib.oidc/oidc-authenticator
Vulnerability advisories affecting package pkg:maven/org.xwiki.contrib.oidc/oidc-authenticator. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-f2hf-pfrj-vrm7 | CVE-2025-49594 | CRITICAL | XWiki OIDC Authenticator: Users with "view" access can create tokens for any users they can view |
| GHSA-m7gv-v8xx-v47w | CVE-2022-39387 | CRITICAL | XWiki OIDC Authenticator vulnerable to bypassing OpenID login by providing a custom provider |
CVE-2025-49594 at a Glance
How to Fix CVE-2025-49594
To remediate this vulnerability, upgrade all affected XWiki OIDC Authenticator 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.oidc</groupId>
<artifactId>oidc-authenticator</artifactId>
<version>2.18.2</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.oidc
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-49594, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.xwiki.contrib.oidc
Analyze the terminal output to locate any version of XWiki OIDC Authenticator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.18.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.xwiki.contrib.oidc 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In XWiki OIDC Authenticator, 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-49594 Affected XWiki OIDC Authenticator Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.xwiki.contrib.oidc:oidc-authenticator
|
Maven |
≥ 2.17.1
< 2.18.2
|
2.18.2
|
References
Frequently Asked Questions
What is CVE-2025-49594?
Which XWiki OIDC Authenticator versions are affected?
What version fixes CVE-2025-49594?
Is oidc-authenticator affected?
What CWE is associated with CVE-2025-49594?
How can I check Maven dependencies for CVE-2025-49594?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f2hf-pfrj-vrm7",
"modified" : "2025-10-23T17:43:47Z",
"published" : "2025-10-06T17:58:22Z",
"aliases" : [ "CVE-2025-49594" ],
"summary" : "XWiki OIDC Authenticator: Users with \"view\" access can create tokens for any users they can view",
"details" : "### Impact\n\nAnyone with VIEW access to a user profile can create a token for that user. If that XWiki instance is configured to allow token authentication, it allows authentication with any user (since users are very commonly viewable, at least to other registered users).\n\n### Patches\n\nVersion 2.18.2.\n\n### Workarounds\n\nThe only workaround is to disable token access.\n\n### References\n\n* https://jira.xwiki.org/browse/OIDC-240\n* https://github.com/xwiki-contrib/oidc/commit/d90d717172283aaa96bb5bb44e357f910ae64adb\n\n### For more information\n\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_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.contrib.oidc:oidc-authenticator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.17.1"
}, {
"fixed" : "2.18.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/xwiki-contrib/oidc/security/advisories/GHSA-f2hf-pfrj-vrm7"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49594"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki-contrib/oidc/commit/d90d717172283aaa96bb5bb44e357f910ae64adb"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/xwiki-contrib/oidc"
}, {
"type" : "WEB",
"url" : "https://jira.xwiki.org/browse/OIDC-240"
}, {
"type" : "WEB",
"url" : "https://www.vicarius.io/vsociety/posts/cve-2025-49594-detect-xwiki-vulnerability"
}, {
"type" : "WEB",
"url" : "https://www.vicarius.io/vsociety/posts/cve-2025-49594-mitigate-xwiki-vulnerability"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-285" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-06T17:58:22Z",
"nvd_published_at" : "2025-10-06T15:16:04Z"
}
}