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

Critical severity, published 2026-07-09. Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Canonical URL: https://buzzphp.com/security/ghsa-6x7x-gcmf-7r8x · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical (CVSS 9.1) |
| Published | 2026-07-09 |
| Updated | 2026-07-09 |
| CVE | [CVE-2026-52766](https://nvd.nist.gov/vuln/detail/CVE-2026-52766) |
| GHSA | [GHSA-6x7x-gcmf-7r8x](https://github.com/advisories/GHSA-6x7x-gcmf-7r8x) |
| Weakness | CWE-276, CWE-862 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| yeswiki/yeswiki | < 4.6.6 | 4.6.6 |

## What to do

Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Check which version you run with `composer show yeswiki/yeswiki`, and every affected package with `composer audit`.

## About this advisory

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.



## Links

- [GHSA-6x7x-gcmf-7r8x on GitHub](https://github.com/advisories/GHSA-6x7x-gcmf-7r8x)
- [CVE-2026-52766 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-52766)
- [All Composer security advisories](https://buzzphp.com/security)
