Vulnerabilities in pkg:maven/org.xwiki.commons/xwiki-commons-core

PACKAGE
Advisory Identifier: GHSA-76mp-659p-rw65
Advisory Summary

CVE-2021-32620 is a HIGH (CVSS 8.1) xwiki users registered with email vulnerability (CWE-285: Improper Authorization) affecting Xwiki commons core libraries in the Maven ecosystem. The issue involves xwiki users registered with email verification can self re-activate their disabled accounts. Remediation is available by upgrading affected packages to version 11.10.13, 12.6.7, 12.10.2.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.xwiki.commons/xwiki-commons-core

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.xwiki.commons/xwiki-commons-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-76mp-659p-rw65 CVE-2021-32620 HIGH XWiki users registered with email verification can self re-activate their disabled accounts
GHSA-h353-hc43-95vc CVE-2021-32621 HIGH Script injection without script or programming rights through Gadget titles

CVE-2021-32620 at a Glance

CVE Identifier CVE-2021-32620
GHSA Identifier GHSA-76mp-659p-rw65
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-285: Improper Authorization
Affected Product Xwiki commons core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.1

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:U/C:H/I:H/A:N).

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

How to Fix CVE-2021-32620

To remediate this vulnerability, upgrade all affected Xwiki commons core 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.commons:xwiki-commons-core fixed: 11.10.13
<dependency>
    <groupId>org.xwiki.commons</groupId>
    <artifactId>xwiki-commons-core</artifactId>
    <version>11.10.13</version>
</dependency>
org.xwiki.commons:xwiki-commons-core fixed: 12.6.7
<dependency>
    <groupId>org.xwiki.commons</groupId>
    <artifactId>xwiki-commons-core</artifactId>
    <version>12.6.7</version>
</dependency>
org.xwiki.commons:xwiki-commons-core fixed: 12.10.2
<dependency>
    <groupId>org.xwiki.commons</groupId>
    <artifactId>xwiki-commons-core</artifactId>
    <version>12.10.2</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.commons

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.xwiki.commons

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

Note: The mvn dependency:tree -Dincludes=org.xwiki.commons 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 commons core, 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 A user disabled on a wiki using email verification for registration can re-activate himself by using the activation link provided for his registration. ### Patches The problem has been patched in the following versions of XWiki: 11.10.13, 12.6.7, 12.10.2, 13.0. ### Workarounds It's possible to workaround the issue by resetting the `validkey` property of the disabled XWiki users. This can be done by editing the user profile with object editor. ### References https://jira.xwiki.org/browse/XWIKI-17942 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira](http://jira.xwiki.org) * Email us at [Security mailing-list](mailto:security@xwiki.org)

CVE-2021-32620 Affected Xwiki commons core Versions

3 component(s)
Fixed Versions:
11.10.1312.6.712.10.2
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.commons:xwiki-commons-core
Maven
≥ 11.6
< 11.10.13
11.10.13
org.xwiki.commons:xwiki-commons-core
Maven
≥ 12.0
< 12.6.7
12.6.7
org.xwiki.commons:xwiki-commons-core
Maven
≥ 12.10.0
< 12.10.2
12.10.2

References

Frequently Asked Questions

What is CVE-2021-32620?
CVE-2021-32620 is a security vulnerability in Xwiki commons core involving XWiki users registered with email verification can self re-activate their disabled accounts under CWE-285: Improper Authorization.
Which Xwiki commons core versions are affected?
Affected versions include releases prior to 11.10.13, 12.6.7, 12.10.2 across affected packages: org.xwiki.commons:xwiki-commons-core.
What version fixes CVE-2021-32620?
Upgrading to 11.10.13, 12.6.7, 12.10.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwiki-commons-core affected?
Yes, org.xwiki.commons:xwiki-commons-core is affected in releases prior to 11.10.13, 12.6.7, 12.10.2. Upgrade your dependency to 11.10.13, 12.6.7, 12.10.2 or later.
What is the CVSS score of CVE-2021-32620?
CVE-2021-32620 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2021-32620?
CVE-2021-32620 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2021-32620?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.commons'. 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-76mp-659p-rw65",
  "modified" : "2025-01-22T17:40:11Z",
  "published" : "2021-05-18T18:36:21Z",
  "aliases" : [ "CVE-2021-32620" ],
  "summary" : "XWiki users registered with email verification can self re-activate their disabled accounts",
  "details" : "### Impact\nA user disabled on a wiki using email verification for registration can re-activate himself by using the activation link provided for his registration. \n\n### Patches\nThe problem has been patched in the following versions of XWiki: 11.10.13,  12.6.7, 12.10.2, 13.0.\n\n### Workarounds\nIt's possible to workaround the issue by resetting the `validkey` property of the disabled XWiki users. This can be done by editing the user profile with object editor.\n\n### References\nhttps://jira.xwiki.org/browse/XWIKI-17942\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira](http://jira.xwiki.org)\n* Email us at [Security mailing-list](mailto:security@xwiki.org)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.commons:xwiki-commons-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.6"
      }, {
        "fixed" : "11.10.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.commons:xwiki-commons-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0"
      }, {
        "fixed" : "12.6.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.commons:xwiki-commons-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.10.0"
      }, {
        "fixed" : "12.10.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-76mp-659p-rw65"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32620"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/commit/f9a677408ffb06f309be46ef9d8df1915d9099a4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xwiki/xwiki-commons"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XWIKI-17942"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285", "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-18T16:36:02Z",
    "nvd_published_at" : "2021-05-28T21:15:00Z"
  }
}