← Back to overview

YesWiki, a PHP-based wiki system, contains a SQL injection vulnerability in the ApiController::deletePage() method affecting versions 4.2.0 through 4.6.5. The vulnerability arises from unsanitized interpolation of a page tag into a raw SQL DELETE query. An attacker with low-privilege authenticated access can create a page with a maliciously crafted tag containing SQL fragments, make the page non-orphaned using the include mechanism, and then invoke the delete API endpoint to execute arbitrary SQL. This allows time-based blind SQL injection enabling data exfiltration from any table in the wiki database. The attack vector is the POST /api/pages/{tag} endpoint which accepts arbitrary URL-encoded values including single quotes. The issue has been fully patched in YesWiki version 4.6.6 via proper input escaping.

Affected products

  • YesWiki 4.2.0 - 4.6.5

Related CVE's

  • CVE-2026-52771

Categories

  • Data Breach & Exfiltration
  • Database & Storage
  • Web Technologies