CVE-2026-66695: Wp Filterable Capability Hardcoded Override

A filterable capability is defined using `apply_filters`, but authorization is checked against hardcoded 'manage_options' rather than the filtered capability variable. This prevents custom capability filters from granting access to non-administrative roles.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-66695-wp-filterable-capability-hardcoded-override --engine opengrep

Description

A filterable capability is defined using `apply_filters`, but authorization is checked against hardcoded 'manage_options' rather than the filtered capability variable. This prevents custom capability filters from granting access to non-administrative roles.