{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "2.5.315"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "2df962c86dfb265c2e2da4c04f935ad9f24fdffb"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v2.5.315",
                "range": [
                  {
                    "fixed": "1161ddc6e6f4388a15d90278d55b099248ce6e79"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1161ddc6e6f4388a15d90278d55b099248ce6e79"
            },
            {
              "fixed": "2df962c86dfb265c2e2da4c04f935ad9f24fdffb"
            }
          ],
          "repo": "https://github.com/requarks/wiki",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-45cp-v5ph-2jhm"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120698.json"
  },
  "details": "Wiki.js is an open source wiki app built on Node.js. Prior to 2.5.315, an authenticated account with only manage:users can use users.update to change the password of any local account, including the Root administrator and other accounts with manage:system, by omitting the optional groups argument, which is automatically allowed and bypasses destination-group authorization without checking the target's current privileges. The attacker can use users.disableTFA to clear the same target's tfaIsActive state and TFA secret without a target-privilege check, then authenticate with the replacement password. Supplying groups: [] to users.update can remove every group relationship from a selected administrator and leave the installation without a legitimate account holding manage:system. Additional administrators with IDs greater than 2 can also be deactivated or deleted. This issue is fixed in version 2.5.315.",
  "id": "CVE-2026-120698",
  "modified": "2026-11-17T20:45:52.483908278Z",
  "published": "2026-11-16T21:14:49.853Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/requarks/wiki/releases/tag/v2.5.315"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120698.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/requarks/wiki/security/advisories/GHSA-45cp-v5ph-2jhm"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-120698"
    },
    {
      "type": "FIX",
      "url": "https://github.com/requarks/wiki/commit/2df962c86dfb265c2e2da4c04f935ad9f24fdffb"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Wiki.js: Root Administrator Takeover, TFA Bypass and Lock out."
}