CVE-2021-24942: The Menu Item Visibility Control WordPress plugin through 0.5 doesn't sanitize and validate the "Visibility logic" option for WordPress menu items, which could allow highly privileged users to execute

high Affects menu-item-visibility-control (WordPress plugin). Feed 2026.10.29.1, updated 2026-10-28; published ; advisory modified .

The Menu Item Visibility Control WordPress plugin through 0.5 doesn't sanitize and validate the "Visibility logic" option for WordPress menu items, which could allow highly privileged users to execute

Package
menu-item-visibility-control (WordPress plugin) WordPress
Affected versions
<=0.5
Fixed in
no fix recorded
Severity
high  CVSS 7.2
Exploitation
not on CISA KEV · EPSS 1% (70.6th percentile)
Published
2022-12-26
Source
nvd

References

NVD recordmenu-item-visibility-control (WordPress plugin) advisories

Am I affected?

Find out in one command. phpwarden checks your WordPress install against this advisory and 20,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden wordpress /var/www/html

# or, without Composer
pipx install phpwarden   &&   phpwarden wordpress /var/www/html

Or keep it checked automatically with the GitHub Action or a nightly cron; see WordPress docs.

Install docs   How findings are ranked

Related advisories