BuzzPHP
LightDarkSystem

YesWiki has Unsafe eval() in its Formula Calculato, Leading to Remote Code Execution & Denial of Service

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.8
Published
Updated
CVECVE-2026-52778 (opens in a new tab)
GHSAGHSA-px5m-h76g-p7p8 (opens in a new tab)
WeaknessCWE-94, CWE-1333

What the advisory says

Summary

An unsafe execution vulnerability exists in the Bazar form field calculator (CalcField.php) of YesWiki. The application attempts to sanitize user-defined mathematical formulas using a complex recursive regular expression before passing them to the PHP eval() function. This implementation is inherently flawed: it is vulnerable to Regular Expression Denial of Service (ReDoS / Stack Overflow) which can crash the server, and it creates a high-risk architecture where any logic bypass directly results in arbitrary PHP code execution.

Details

Source: GHSA-px5m-h76g-p7p8 (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