{"id":"CVE-2026-52771","summary":"YesWiki: Second-Order SQL Injection in Page Delete API via Unescaped Page Tag (`ApiController::deletePage`)","details":"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.","aliases":["GHSA-8f2v-2qhj-gfwg"],"modified":"2026-09-06T03:46:13.663941874Z","published":"2026-09-04T23:41:34.061Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-89"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52771.json"},"references":[{"type":"WEB","url":"https://github.com/YesWiki/yeswiki/releases/tag/v4.6.6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52771.json"},{"type":"ADVISORY","url":"https://github.com/YesWiki/yeswiki/security/advisories/GHSA-8f2v-2qhj-gfwg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52771"},{"type":"FIX","url":"https://github.com/YesWiki/yeswiki/commit/23d3cc124613b9428ab963b31807c08879a9c631"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/yeswiki/yeswiki","events":[{"introduced":"db3ec4d4a14a75bc38f71a1009b8731b7e58f5dd"},{"fixed":"fa81922f4103630911cbea98ead3c4b7bc786e19"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"4.2.0"},{"fixed":"4.6.6"}]}}],"versions":["v4.6.5","v4.6.4","v4.6.3","v4.6.2","v4.6.0","v4.5.5","v4.5.4","v4.5.3","v4.5.2","v4.5.1","v4.4.3","v4.4.2","v4.4.1","v4.4.0","v4.3.1","v4.3.0","v4.2.2","v4.2.1","v4.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52771.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L"}]}