GHSA-89v6-j5x6-cmj3: YesWiki: SQL injection via the `recentchanges` action `period` argument leads to arbitrary DB read
YesWiki versions prior to 4.6.6 contain a stored SQL injection vulnerability in the recentchanges action's period argument when invoked via the action invocation syntax. The vulnerability arises because the period parameter from the action invocation is not validated or escaped before being interpolated into an SQL query, allowing an attacker who can save a specially crafted page to execute arbitrary SQL queries. This leads to arbitrary database read access for any user viewing the malicious page. The default configuration allows anonymous users to exploit this via the page-edit flow.
AI Analysis
Technical Summary
The recentchanges action in YesWiki improperly handles the period argument from the action invocation parameter space, bypassing whitelist validation applied only to the URL query parameter. This unvalidated input is directly interpolated into a SQL query in PageManager::getRecentlyChanged() without escaping or parameter binding, enabling UNION-based SQL injection. Because the injection is stored in a page, any user viewing that page triggers the injection and sees exfiltrated data rendered as page links. The default write ACL allows anonymous users to save such a trigger page, making the vulnerability broadly exploitable.
Potential Impact
An attacker with permission to save pages (including anonymous users on default installs) can inject SQL code that is executed whenever the page is viewed, resulting in arbitrary read access to the YesWiki database. This can expose sensitive data such as user credentials or other confidential information accessible to the database user. The vulnerability does not allow modification or deletion of data, only reading.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict write permissions to trusted users only to prevent injection of malicious recentchanges action parameters. Avoid using the recentchanges action with untrusted input in page content. Monitor vendor channels for an official patch.
GHSA-89v6-j5x6-cmj3: YesWiki: SQL injection via the `recentchanges` action `period` argument leads to arbitrary DB read
Description
YesWiki versions prior to 4.6.6 contain a stored SQL injection vulnerability in the recentchanges action's period argument when invoked via the action invocation syntax. The vulnerability arises because the period parameter from the action invocation is not validated or escaped before being interpolated into an SQL query, allowing an attacker who can save a specially crafted page to execute arbitrary SQL queries. This leads to arbitrary database read access for any user viewing the malicious page. The default configuration allows anonymous users to exploit this via the page-edit flow.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The recentchanges action in YesWiki improperly handles the period argument from the action invocation parameter space, bypassing whitelist validation applied only to the URL query parameter. This unvalidated input is directly interpolated into a SQL query in PageManager::getRecentlyChanged() without escaping or parameter binding, enabling UNION-based SQL injection. Because the injection is stored in a page, any user viewing that page triggers the injection and sees exfiltrated data rendered as page links. The default write ACL allows anonymous users to save such a trigger page, making the vulnerability broadly exploitable.
Potential Impact
An attacker with permission to save pages (including anonymous users on default installs) can inject SQL code that is executed whenever the page is viewed, resulting in arbitrary read access to the YesWiki database. This can expose sensitive data such as user credentials or other confidential information accessible to the database user. The vulnerability does not allow modification or deletion of data, only reading.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict write permissions to trusted users only to prevent injection of malicious recentchanges action parameters. Avoid using the recentchanges action with untrusted input in page content. Monitor vendor channels for an official patch.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-89v6-j5x6-cmj3
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-52763"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a50ba7468715ace4358035f
Added to database: 07/10/2026, 09:25:08 UTC
Last enriched: 07/10/2026, 09:56:48 UTC
Last updated: 07/10/2026, 09:56:48 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.