Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-4002

CVE-2026-4002: Petje.af WordPress Plugin CSRF Vulnerability

CVE-2026-4002 is a Cross-Site Request Forgery flaw in the Petje.af WordPress plugin that allows attackers to force users to delete their accounts. This post covers technical details, affected versions, impact, and mitigation.

Published: April 17, 2026

CVE-2026-4002 Overview

The Petje.af plugin for WordPress contains a Cross-Site Request Forgery (CSRF) vulnerability in all versions up to and including 2.1.8. The vulnerability exists due to missing nonce validation in the ajax_revoke_token() function, which handles the petjeaf_disconnect AJAX action. This 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 that the request originated from a legitimate source.

Critical Impact

Unauthenticated attackers can force authenticated users to delete their Petje.af member user accounts via a forged request if the victim clicks on a malicious link or visits a compromised website.

Affected Products

  • Petje.af WordPress Plugin versions up to and including 2.1.8
  • WordPress installations with vulnerable Petje.af plugin enabled
  • User accounts with the petjeaf_member role

Discovery Timeline

  • April 15, 2026 - CVE-2026-4002 published to NVD
  • April 15, 2026 - Last updated in NVD database

Technical Details for CVE-2026-4002

Vulnerability Analysis

This CSRF vulnerability stems from insufficient security controls in the OAuth2 provider implementation of the Petje.af plugin. The ajax_revoke_token() function processes the petjeaf_disconnect AJAX action without implementing WordPress nonce verification, which is the standard mechanism for validating that form submissions and AJAX requests originate from the intended source.

When a victim who is authenticated to WordPress visits a malicious page or clicks a crafted link, the attacker-controlled page can automatically submit a request to the vulnerable endpoint. The server processes this request as legitimate because it lacks the capability to distinguish between authentic user actions and forged cross-origin requests.

The impact is particularly concerning because the function performs multiple destructive operations: it revokes OAuth2 tokens, deletes associated user metadata, and can completely remove WordPress user accounts that have the petjeaf_member role. This could result in permanent data loss and service disruption for affected users.

Root Cause

The root cause of this vulnerability is the absence of nonce validation in the ajax_revoke_token() function within the class-petje-af-oauth2-provider.php file. WordPress provides the wp_verify_nonce() function specifically to prevent CSRF attacks by validating that requests include a cryptographically secure token that attackers cannot predict or forge. The vulnerable code path at line 326 of the OAuth2 provider class fails to implement this validation before executing destructive operations.

Attack Vector

The attack is conducted over the network and requires user interaction—specifically, the victim must click a link or visit a malicious website while authenticated to the WordPress site. The attacker crafts an HTML page containing a form or JavaScript that automatically submits a request to the vulnerable AJAX endpoint. Because the endpoint lacks CSRF protection, the browser sends the request with the victim's authentication cookies, and the server processes it as a legitimate user action.

The attack flow involves the attacker preparing a malicious webpage, distributing it to potential victims through phishing or other social engineering techniques, and waiting for an authenticated WordPress user with access to the Petje.af plugin to visit the page. Upon visiting, the malicious request is automatically executed, resulting in token revocation and potential account deletion.

Detection Methods for CVE-2026-4002

Indicators of Compromise

  • Unexpected user account deletions for accounts with the petjeaf_member role
  • OAuth2 tokens being revoked without user initiation
  • Suspicious AJAX requests to the petjeaf_disconnect action from external referrers
  • User reports of being logged out or losing access to Petje.af integration

Detection Strategies

  • Monitor WordPress AJAX logs for unusual patterns of petjeaf_disconnect action requests
  • Implement referrer checking at the web application firewall level for sensitive AJAX endpoints
  • Review server access logs for requests to admin-ajax.php with the petjeaf_disconnect action originating from external sites
  • Set up alerts for bulk or rapid user meta deletion events

Monitoring Recommendations

  • Enable detailed WordPress audit logging to track user account modifications and deletions
  • Configure web application firewall rules to flag cross-origin requests to sensitive WordPress AJAX endpoints
  • Implement user notification mechanisms when OAuth2 tokens are revoked or accounts are modified
  • Regularly audit user accounts with the petjeaf_member role for unexpected changes

How to Mitigate CVE-2026-4002

Immediate Actions Required

  • Update the Petje.af plugin to the latest version that includes CSRF protection
  • Review recent user account activity for signs of exploitation
  • Temporarily disable the Petje.af plugin if an update is not available
  • Implement web application firewall rules to block suspicious requests to the vulnerable endpoint

Patch Information

Organizations using the Petje.af WordPress plugin should check for updates through the WordPress plugin repository. The vulnerability affects all versions up to and including 2.1.8. Review the Wordfence Vulnerability Report for the latest patch information and remediation guidance. Additionally, the vulnerable code can be examined at the WordPress Plugin OAuth2 Provider Code for reference.

Workarounds

  • Implement additional authentication requirements for the petjeaf_disconnect AJAX action at the server level
  • Use a web application firewall to enforce referrer validation for requests to admin-ajax.php
  • Restrict access to the plugin's administrative functions to trusted IP addresses
  • Consider temporarily removing the plugin until an official patch is available
bash
# Example: Block suspicious AJAX requests via .htaccess (Apache)
# Add to WordPress root .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} admin-ajax\.php
RewriteCond %{QUERY_STRING} action=petjeaf_disconnect
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?yourdomain\.com [NC]
RewriteRule ^ - [F,L]
</IfModule>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score4.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-352
  • Technical References
  • WordPress Plugin OAuth2 Provider Code

  • WordPress Plugin OAuth2 Provider Code

  • WordPress Plugin Core Code

  • WordPress Plugin OAuth2 Provider Code

  • WordPress Plugin OAuth2 Provider Code

  • WordPress Plugin Core Code

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2025-14868: WordPress Career Section CSRF Vulnerability

  • CVE-2026-4091: OPEN-BRAIN WordPress Plugin CSRF Vulnerability

  • CVE-2026-6293: WordPress Inquiry Form Plugin CSRF Vulnerability

  • CVE-2025-32310: QuickCal WordPress Plugin CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English