BuzzPHP
LightDarkSystem

YesWiki vulnerable to unauthenticated arbitrary page deletion via `{{erasespamedcomments}}` action

Critical severity. Published 9 July 2026. Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Which versions are affected?

PackageAffected versionsFixed in
yeswiki/yeswiki (opens in a new tab)< 4.6.64.6.6

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show yeswiki/yeswiki
composer audit

Advisory details

SeverityCriticalCVSS 9.1
Published
Updated
CVECVE-2026-52766 (opens in a new tab)
GHSAGHSA-6x7x-gcmf-7r8x (opens in a new tab)
WeaknessCWE-276, CWE-862

What the advisory says

Summary

The {{erasespamedcomments}} wiki action (actions/EraseSpamedCommentsAction.php) accepts a suppr[] array from POST and deletes every wiki page whose tag appears in that array, with no authorization check anywhere in the action body or in the page-deletion path it invokes. Combined with YesWiki's allow-by-default action ACL model, any user who has page write access, which is the default for everyone (defaultwriteacl='') on a fresh install can permanently delete arbitrary wiki pages, including the front page, admin pages, and pages owned by other users.

Source: GHSA-6x7x-gcmf-7r8x (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories