CVE-2026-52763
MEDIUM 6.5CVSS 3.1YesWiki: SQL injection via the `recentchanges` action `period` argument leads to arbitrary DB read
YesWiki is a wiki system written in PHP. Prior to version 4.6.6, the recentchanges action (actions/recentchanges.php) accepts a period argument from two disjoint parameter spaces. A whitelist validates only the URL form against ['day','week','month']. The action-argument form takes the else branch with no validation, and the value flows into PageManager::getRecentlyChanged(), 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, 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. This issue has been patched in version 4.6.6.
- Published
- 5 Sep 2026
- Last modified
- 8 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-1287CWE-89
- Also known as
- GHSA-89v6-j5x6-cmj3
- Sources
- NVDJSONOSV GHSA-89v6-j5x6-cmj3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | yeswiki/yeswiki | < 4.6.6 | 4.6.6 |
References
- https://github.com/YesWiki/yeswiki/releases/tag/v4.6.6
- https://github.com/YesWiki/yeswiki/security/advisories/GHSA-89v6-j5x6-cmj3 · WEB
- https://github.com/YesWiki/yeswiki/commit/5da27474c3ee62270c8a6b9d7055d494cdbd38e5 · WEB
- https://github.com/YesWiki/yeswiki · PACKAGE
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 5 Sep 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 9 Jul 2026)