Skip to main content

YesWiki CVE-2026-52763

MEDIUM
SQL Injection (CWE-89)
2026-07-09 https://github.com/YesWiki/yeswiki GHSA-89v6-j5x6-cmj3
6.5
CVSS 3.1 · Vendor: https://github.com/YesWiki/yeswiki
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft UNION-based SQL payload
  2. Delivery
    Solve hashcash JS challenge on edit form
  3. Exploit
    Save wiki page with malicious {{recentchanges period='...'}}
  4. Install
    Victim visits trigger page
  5. C2
    Unvalidated period value interpolated raw into SQL WHERE clause
  6. Execute
    UNION query extracts target DB rows
  7. Impact
    Exfiltrated credentials rendered as hyperlinks in page response

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires saving a YesWiki page that embeds the {{recentchanges period="..."}} action with a malicious period argument in the wiki action syntax - not via the URL query string, which is separately validated. On default installations where default_write_acl='*', this is achievable by anonymous users who complete the client-side hashcash JavaScript proof-of-work on the page-edit form; hashcash is a client-enforced mechanism bypassable by solving it offline, not a server-enforced authentication requirement. On installations that restrict write access (default_write_acl set to a non-wildcard value), exploitation additionally requires a valid low-privilege authenticated account with page-write permission. Once the page is saved, no further attacker interaction is needed - the injection executes passively for every viewer. The recentchanges action ACL defaults to *, so no special action-level permission is required. Exploitation is bounded to database reads accessible to the application's MySQL user; write, delete, or DDL operations are not demonstrated by the described attack.

Impact

The vendor CVSS of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) correctly captures the network attack vector, low complexity, and high confidentiality impact, but PR:L likely overstates the real-world authentication barrier. On a default YesWiki install (default_write_acl='*'), any anonymous visitor can save pages after completing a client-side hashcash JavaScript proof-of-work - a mechanism bypassable offline, not a server-enforced authentication gate. This makes the effective exploitation prerequisite closer to PR:N for the vast majority of default deployments, raising real-world exploitability above the 6.5 score implies. No EPSS probability score or CISA KEV listing was provided in the supplied intelligence, so automated-exploitation likelihood and active exploitation status cannot be quantified from available data. The stored nature of this injection is a significant amplifier: one successful page-save converts every subsequent visitor into an unwitting trigger, making the blast radius proportional to site traffic rather than to individual attacker interaction. Impact is strictly read-only - no integrity or availability impact applies. The available PoC explicitly demonstrates extraction of password hashes from the yeswiki_users table, confirming credential theft as the primary impact.

Exploit ScenarioDerived

On a default YesWiki installation, an unauthenticated attacker edits or creates a wiki page embedding {{recentchanges period="2000-01-01' UNION SELECT 9999, CONCAT('LEAK_', name, '_', SUBSTRING(password,1,32)), NOW(), name, name FROM yeswiki_users WHERE name='AdminUser' -- "}}, completing the hashcash JS challenge to save the page. From that moment forward, every visitor who loads the page causes the UNION query to fire server-side; the exfiltrated tag column - containing leaked admin credentials - is rendered as a hyperlink in the page HTML visible to all viewers. The PoC for this exact attack is included in the published advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 09, 2026

Stored SQL injection in YesWiki's recentchanges action enables arbitrary read of the underlying MySQL database by any user who can save a wiki page - on default installations, this includes unauthenticated visitors. The payload is persisted as wiki page content and executes on every subsequent page load, leaking rows (including admin usernames and password hashes) rendered directly into the HTML response as hyperlinks. A fully working UNION-based proof-of-concept is included in the GitHub security advisory, confirming practical exploitability with no public exploit identified at time of analysis in CISA KEV.

RemediationAI

Apply the upstream fix available at commit 5da27474c3ee62270c8a6b9d7055d494cdbd38e5 (https://github.com/YesWiki/yeswiki/commit/5da27474c3ee62270c8a6b9d7055d494cdbd38e5); upstream fix available (commit), but a specifically tagged patched release version is not independently confirmed from available data - verify that a tagged release incorporating this commit exists before updating production systems. The vendor advisory is at https://github.com/YesWiki/yeswiki/security/advisories/GHSA-89v6-j5x6-cmj3. As compensating controls while the patch is deployed: restrict page-write access by changing default_write_acl from '*' to require authentication (e.g., @admins or a specific group), which eliminates the anonymous exploitation path but changes site behavior for public-editing wikis; alternatively, restrict or disable the recentchanges action via the YesWiki ACL system to prevent the vulnerable action from executing. Hardening the MySQL application user's grants to the minimum required tables also limits the blast radius of exploitation.

Affected Packages

composer yeswiki/yeswiki fix: 4.6.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

YesWiki is a PHP wiki platform distributed via Composer (yeswiki/yeswiki). The root cause is a split parameter-handling path in actions/recentchanges.php: the period value supplied via the URL query string ($_GET['period']) is validated against a strict whitelist (['day','week','month'] at line 17), but the identical parameter supplied via the wiki action syntax {{recentchanges period="..."}} is read by Wiki::GetParameter() (includes/YesWiki.php:895) in the else branch at line 33 - completely bypassing the whitelist. The two parameter sources ($_GET vs. the action argument map $this->parameter) are disjoint, so the whitelist never evaluates the action-supplied value. This unvalidated string flows as $minDate into PageManager::getRecentlyChanged() (includes/services/PageManager.php:196), where it is directly interpolated into a raw SQL string - WHERE time >= '$minDate' ORDER BY time DESC - with no parameterized binding, no escape() call, and no format check. This is a textbook CWE-89 (Improper Neutralization of Special Elements in an SQL Command). The recentchanges action ACL defaults to *, so the injection executes for every page visitor without any action-level access check.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/YesWiki/yeswiki) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 7.5 HIGH

Default install permits anonymous page saves (default_write_acl='*') with only a bypassable client-side hashcash check, warranting PR:N; no integrity or availability impact is demonstrated.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/YesWiki/yeswiki).

CVSS VectorVendor: https://github.com/YesWiki/yeswiki

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

Summary

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.

Details

Two issues compose the vulnerability.

  1. actions/recentchanges.php line 33 reads the action argument and skips the whitelist.
php
   if (isset($_GET['period']) && in_array($_GET['period'], ['day', 'week', 'month'])) {
       switch ($_GET['period']) {
           case 'day':   $d = strtotime('-1 day');   $dateMin = date('Y-m-d H:i:s', $d); break;
           case 'week':  $d = strtotime('-1 week');  $dateMin = date('Y-m-d H:i:s', $d); break;
           case 'month': $d = strtotime('-1 month'); $dateMin = date('Y-m-d H:i:s', $d); break;
       }
   } else {
       $dateMin = $this->GetParameter('period');
   }

Wiki::GetParameter() (includes/YesWiki.php:895) reads $this->parameter[$key], which is populated from the {{action key=value}} argument list - disjoint from $_GET. The whitelist's if branch only runs when $_GET['period'] matches one of three exact values; in every other case the else branch reads the action argument with no validation, no escaping, no DateTime parse, no regex. The two parameter spaces are independent.

  1. In includes/services/PageManager.php, PageManager::getRecentlyChanged() interpolates the value into SQL.
php
   public function getRecentlyChanged($limit = 50, $minDate = ''): ?array
   {
       if (!empty($minDate)) {
           if ($pages = $this->dbService->loadAll(
               'select id, tag, time, user, owner from' . $this->dbService->prefixTable('pages')
               . "where latest = 'Y' and comment_on = '' and time >= '$minDate' order by time desc"
           )) {
               return $pages;
           }
       }
   }

$minDate is interpolated raw into the query and there is no $this->dbService->escape($minDate) and no parameter binding and no format check.

The default action ACL for recentchanges is * (includes/YesWiki.php:1100, GetModuleACL), so Performer::CheckModuleACL('recentchanges', 'action') returns true for everyone. The injection runs whenever a viewer reaches a page that embeds the action with a malicious period argument.

PoC

Default fresh install so default_write_acl='*'.

  1. place the SQLi payload on a page
{{recentchanges period="2000-01-01' UNION SELECT 9999 AS id, CONCAT('LEAK_', name, '_', SUBSTRING(password,1,32)) AS tag, NOW() AS time, name AS user, name AS owner FROM yeswiki_users WHERE name='AdminUser' -- "}}

The five UNION columns match the id, tag, time, user, owner projection that getRecentlyChanged selects. The tag column is rendered into the response as a hyperlink, exfiltrating the leaked data.

  1. anyone visits the page
http
GET /?<TriggerPage> HTTP/1.1
Host: target.example

The injected query executes server-side; the tag column is rendered into the page in actions/recentchanges.php:43,58 via ComposeLinkToPage($page['tag']).

Impact

Arbitrary read of any DB column the application's MySQL user can access.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
niche PHP wiki platform, limited enterprise deployment footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Affected Products (CPE)CVE.org

pkg:composer/yeswiki_yeswiki

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy