{"id":"CVE-2026-52771","published":"2026-09-04T23:41:34Z","modified":"2026-09-08T16:56:23Z","title":"YesWiki: Second-Order SQL Injection in Page Delete API via Unescaped Page Tag (`ApiController::deletePage`)","vendor":"YesWiki","product":"yeswiki","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00512,"percentile":0.36964,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/YesWiki/yeswiki/security/advisories/GHSA-8f2v-2qhj-gfwg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/YesWiki/yeswiki/commit/23d3cc124613b9428ab963b31807c08879a9c631","tags":["x_refsource_MISC"]},{"url":"https://github.com/YesWiki/yeswiki/releases/tag/v4.6.6","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":7.39},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"yeswiki","affectedVersions":[{"vendor":"YesWiki","product":"yeswiki","versions":[">= 4.2.0, < 4.6.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-08T16:41:16.858942Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"yeswiki/yeswiki","vulnerableRanges":[">=4.2.0, <4.6.6"],"patched":["4.6.6"],"from":["GHSA-8f2v-2qhj-gfwg"],"provenance":"source"}],"summary":{"text":"The YesWiki wiki system (product yeswiki, versions 4.2.0 through before 4.6.6) has a second-order SQL injection in ApiController::deletePage(), which interpolates an unescaped page tag from the database into a DELETE query. An attacker with only low-privilege authenticated access over the network can create a page whose tag contains a SQL fragment (the page API stores arbitrary tags), make it non-orphaned via the standard include mechanism, then call the delete endpoint to run arbitrary SQL against the wiki database, including time-based blind exfiltration, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:47Z"},"euvd":{"id":"EUVD-2026-71803","exploited":false,"provenance":"source"}}