CVE-2025-5142 Simple Page Access Restriction <= 1.0.31 - Cross-Site Request Forgery via Multiple Parameters

Medium 6.5 Published Updated

Unauthenticated attackers can trick administrators into modifying plugin settings or redirecting users via forged requests due to missing nonce validation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-5142?

CVE-2025-5142 is a medium-severity vulnerability in pluginsandsnippets Simple Page Access Restriction, published on 30 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The Simple Page Access Restriction plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.0.31. This is due to missing nonce validation and capability checks in the settings save handler in the settings.php script. This makes it possible for unauthenticated attackers to (1) enable or disable access protection on all post types or taxonomies, (2) force every new page/post to be public or private, regardless of meta-box settings, (3) cause a silent wipe of all plugin data when it’s later removed, or (4) to conduct URL redirection attacks via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.

Weakness: CWE-352

Which versions are affected by CVE-2025-5142?

It affects 1 product.

Products include Pluginsandsnippets Simple Page Access Restriction.

How do I fix CVE-2025-5142?

No fix has been published for CVE-2025-5142 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-5142 being exploited?

There is no known exploitation of CVE-2025-5142 in the wild and no public exploit code.

Sources

Also known as GHSA-6f5m-fg33-2rmv.

Is CVE-2025-5142 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free