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

- Severity: Medium 4.3 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-04-15T08:28:14.102Z
- Modified: 2026-06-17T10:55:50.127Z
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Wordfence

## 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.

(As written by CVE List.)

## Affected

- petjeaf Petje.af: up to 2.1.8

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/28a071ac-37ee-4fb9-b8c6-0a782ee673b4?source=cve>
- <https://plugins.trac.wordpress.org/browser/petje-af/trunk/includes/class-petje-af-oauth2-provider.php#L346>
- <https://plugins.trac.wordpress.org/browser/petje-af/tags/2.1.8/includes/class-petje-af-oauth2-provider.php#L346>
- <https://plugins.trac.wordpress.org/browser/petje-af/trunk/includes/class-petje-af-oauth2-provider.php#L326>
- <https://plugins.trac.wordpress.org/browser/petje-af/tags/2.1.8/includes/class-petje-af-oauth2-provider.php#L326>
- <https://plugins.trac.wordpress.org/browser/petje-af/trunk/includes/class-petje-af.php#L182>
- <https://plugins.trac.wordpress.org/browser/petje-af/tags/2.1.8/includes/class-petje-af.php#L182>

## Sources

- CVE List: [CVE-2026-4002](https://www.cve.org/CVERecord?id=CVE-2026-4002), CVE Terms of Use, modified 2026-04-15
- NVD: [CVE-2026-4002](https://nvd.nist.gov/vuln/detail/CVE-2026-4002), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-4002 · Whole record: https://cve.day/CVE-2026-4002.json · Rebuilt by cve.day 2026-11-25T22:59:18.822Z
