Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. yeswiki/yeswiki
  4. ›
  5. CVE-2026-52763

CVE-2026-52763: YesWiki: SQL injection via the `recentchanges` action `period` argument leads to arbitrary DB read

July 9, 2026

The recentchanges action (actions/recentchanges.php) accepts a period argument from two disjoint parameter spaces: the URL query string ($_GET['period']) and the action invocation {{recentchanges period="..."}}. A whitelist at line 17 validates only the URL form against ['day','week','month']. The action-argument form takes the else branch at line 33 ($dateMin = $this->GetParameter('period')) with no validation, and the value flows into PageManager::getRecentlyChanged() (includes/services/PageManager.php:196), where it is interpolated into a WHERE time >= '...' ORDER BY time DESC clause without escaping or parameterization. UNION-based injection succeeds, the leaked rows render into the response page via actions/recentchanges.php:43,58 (ComposeLinkToPage($page['tag'])), so any visitor of the trigger page sees the exfiltrated data.

The vulnerability provides arbitrary read of the YesWiki database to anyone who can save the trigger page. On a default install (default_write_acl='*'), this includes anonymous users, subject to the hashcash JS check on the page-edit form. Once the trigger page is saved, every subsequent view fires the injection as the SQLi is stored. Stored SQL injection is reachable through the page-edit flow, with arbitrary database read.

References

  • github.com/YesWiki/yeswiki/commit/5da27474c3ee62270c8a6b9d7055d494cdbd38e5
  • github.com/YesWiki/yeswiki/security/advisories/GHSA-89v6-j5x6-cmj3
  • github.com/advisories/GHSA-89v6-j5x6-cmj3
  • nvd.nist.gov/vuln/detail/CVE-2026-52763

Code Behaviors & Features

Detect and mitigate CVE-2026-52763 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.6.6

Fixed versions

  • 4.6.6

Solution

Upgrade to version 4.6.6 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-1287: Improper Validation of Specified Type of Input
  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/yeswiki/yeswiki/CVE-2026-52763.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 10 Aug 2026 00:16:01 +0000.