SecurityContext

CVE-2022-23654: Wiki.js - Broken Access Control

  • Cve: CVE-2022-23654
  • Name: Wiki.js - Broken Access Control
  • Description: Wiki.js is a wiki app built on Node.js. In affected versions an authenticated user with write access on a restricted set of paths can update a page outside the allowed paths by specifying a different target page ID while keeping the path intact. The access control incorrectly check the path access against the user-provided values instead of the actual path associated to the page ID. Commit https://github.com/Requarks/wiki/commit/411802ec2f654bb5ed1126c307575b81e2361c6b fixes this vulnerability by checking access control on the path associated with the page ID instead of the user-provided value. When the path is different than the current value, a second access control check is then performed on the user-provided path before the move operation.
  • Impact: Authenticated users can update pages outside permitted paths, potentially leading to unauthorized content modification or privilege escalation.
  • Remediation: Apply the fix from commit https://github.com/Requarks/wiki/commit/411802ec2f654bb5ed1126c307575b81e2361c6b or update to the latest version where this issue is addressed.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: data_tampering
  • Requirement type: logged_in
  • Requirements: Attacker needs to be an authenticated user with write access and manipulate page ID
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00723
  • Epss percentile: 0.54961
  • Assignee: [email protected]
  • Published at: 2022-02-22T20:15:07Z
  • Age in days: 1736
  • Modified at: 2026-06-17T04:30:34Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-23654
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-287Improper Authentication
NVD-CWE-Other—

References

UrlSourceTags
https://github.com/Requarks/wiki/commit/411802ec2f654bb5ed1126c307575b81e2361c6bnvdPatch, Third Party Advisory
https://github.com/Requarks/wiki/security/advisories/GHSA-3cv9-795v-6j7jnvdPatch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
requarks:wiki.js< 2.5.276nonvd/v1/products/requarks/wiki.js

Projects

RepositoryLink kindsIndexedUrl
Requarks/wikicommit, fix, security_advisoryyes/v1/repositories/Requarks/wiki

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 20
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports