YesWiki: Second-Order SQL Injection in Page Delete API via Unescaped Page Tag (`ApiController::deletePage`)
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
YesWiki is a wiki system written in PHP. From version 4.2.0 to before version 4.6.6, ApiController::deletePage() interpolates a page tag retrieved from the database into a DELETE FROM …_links WHERE to_tag = '$tag' query without escaping. The page tag is attacker-controlled — the POST /api/pages/{tag} API accepts arbitrary URL-encoded values, including single quotes, and stores them. A low-privilege authenticated user can therefore create a page whose tag is a SQL fragment, make the page non-orphaned via the standard {{include page="…"}} link mechanism, and then invoke the delete endpoint to execute arbitrary SQL inside the wiki database - including time-based blind data exfiltration from any table. This issue has been patched in version 4.6.6.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| YesWiki | yeswiki | 4.2.0 to before 4.6.6 | 4.6.6 | Patch available | CNA |
| — | yeswiki/yeswiki (Packagist) | 4.2.0 to before 4.6.6 | 4.6.6 | Patch available | GHSA-8f2v-2qhj-gfwg |
- yeswiki VendorYesWiki Affected 4.2.0 to before 4.6.6 Fixed in 4.6.6 Patch available CNA
- yeswiki/yeswiki (Packagist) Vendor— Affected 4.2.0 to before 4.6.6 Fixed in 4.6.6 Patch available GHSA-8f2v-2qhj-gfwg
Remediation
- Fix · CNA yeswiki (YesWiki) Fixed in 4.6.6
- Fix · GHSA-8f2v-2qhj-gfwg yeswiki/yeswiki (Packagist) Fixed in 4.6.6 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-52771
- 2026-10-03 Alias added: GHSA-8f2v-2qhj-gfwg
References
More YesWiki vulnerabilities
- TI-2026-37893 YesWiki has Unsafe eval() in Formula Calculator - Remote Code Execution (RCE) & Denial of Service (DoS) CVSS 3.1CRITICAL 9.8
- TI-2026-34305 YesWiki: Unauthenticated SQL Injection CVSS 3.1CRITICAL 9.8
- TI-2025-29089 YesWiki Vulnerable to Unauthenticated Site Backup Creation and Download CVSS 3.1CRITICAL 10.0
- TI-2024-34399 Use of a Broken or Risky Cryptographic Algorithm in YesWiki CVSS 3.1CRITICAL 9.9
- TI-2026-37882 YesWiki: Unauthenticated arbitrary page deletion via `{{erasespamedcomments}}` action CVSS 3.1CRITICAL 9.1
- TI-2026-80227 SQL injection in YesWiki Bazar entry creation via date_maj_fiche CVSS 4.0HIGH 8.8
Sources
- CVE-2026-52771 · CVE Program
- CVE-2026-52771 · NVD
- FIRST EPSS
- GHSA-8f2v-2qhj-gfwg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences