Read the docs
TI-2026-37886 Aliases CVE-2026-52771GHSA-8f2v-2qhj-gfwg

YesWiki: Second-Order SQL Injection in Page Delete API via Unescaped Page Tag (`ApiController::deletePage`)

Priority LOW 39CWE-89Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00512 43rd percentileScored 2026-11-07
Fix Fixed yeswiki (YesWiki): 4.6.6yeswiki/yeswiki (Packagist): 4.6.6

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

VendorProductAffected versionsFixed inStatusSource
YesWikiyeswiki4.2.0 to before 4.6.64.6.6Patch availableCNA
—yeswiki/yeswiki (Packagist)4.2.0 to before 4.6.64.6.6Patch availableGHSA-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

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:yeswiki:yeswiki:*:*:*:*:*:*:*:*——YesWiki
  • cpe:2.3:a:yeswiki:yeswiki:*:*:*:*:*:*:*:* Versions — — ·YesWiki

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

  1. 2026-10-02 Threatist record created from CVE-2026-52771
  2. 2026-10-03 Alias added: GHSA-8f2v-2qhj-gfwg

References

  • 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
See all 85 →

Sources