Home

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.

PUBLISHED Reserved 2026-03-11 | Published 2026-04-15 | Updated 2026-04-15 | Assigner Wordfence




MEDIUM: 4.3CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Problem types

CWE-352 Cross-Site Request Forgery (CSRF)

Product status

Default status
unaffected

Any version
affected

Timeline

2026-04-14:Disclosed

Credits

Youcef Hamdani finder

References

www.wordfence.com/...-37ee-4fb9-b8c6-0a782ee673b4?source=cve

plugins.trac.wordpress.org/...s-petje-af-oauth2-provider.php

plugins.trac.wordpress.org/...s-petje-af-oauth2-provider.php

plugins.trac.wordpress.org/...s-petje-af-oauth2-provider.php

plugins.trac.wordpress.org/...s-petje-af-oauth2-provider.php

plugins.trac.wordpress.org/...nk/includes/class-petje-af.php

plugins.trac.wordpress.org/....8/includes/class-petje-af.php

cve.org (CVE-2026-4002)

nvd.nist.gov (CVE-2026-4002)

Download JSON