CVE-2026-4002 Petje.af <= 2.1.8 - Cross-Site Request Forgery to Account Deletion via 'petjeaf_disconnect' AJAX Action

Medium 4.3 Published Updated

Unauthenticated attackers can force authenticated users to delete their Petje.af member accounts via CSRF 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-2026-4002?

CVE-2026-4002 is a medium-severity vulnerability in petjeaf Petje.af, published on 15 Apr 2026. 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 Petje.af plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to and including 2.1.8. This is due to missing nonce validation in the ajax_revoke_token() function which handles the 'petjeaf_disconnect' AJAX action. The function performs destructive operations including revoking OAuth2 tokens, deleting user meta, and deleting WordPress user accounts (for users with the 'petjeaf_member' role) without verifying the request originated from a legitimate source. This makes it possible for unauthenticated attackers to force authenticated users to delete their Petje.af member user accounts via a forged request granted the victim clicks on a link or visits a malicious site.

Weakness: CWE-352

Which versions are affected by CVE-2026-4002?

How do I fix CVE-2026-4002?

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

Is CVE-2026-4002 being exploited?

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

Sources

Also known as GHSA-hx42-ggr3-3hp6.

Is CVE-2026-4002 in your software?

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

Check your SBOMs for free