CVE-2025-30521 Overview
CVE-2025-30521 is a Cross-Site Request Forgery (CSRF) vulnerability affecting the GP Back To Top WordPress plugin developed by giangmd93. The flaw impacts all plugin versions up to and including 3.0. An attacker can trick an authenticated administrator into submitting a forged request that performs unintended state-changing actions in the plugin. Exploitation requires user interaction, typically by luring an authenticated user to click a malicious link or visit an attacker-controlled page. The issue is tracked under CWE-352: Cross-Site Request Forgery.
Critical Impact
Successful exploitation allows an unauthenticated remote attacker to alter plugin settings by abusing an authenticated administrator's session, leading to limited integrity impact on the WordPress site.
Affected Products
- GP Back To Top WordPress plugin by giangmd93
- All versions from n/a through 3.0
- WordPress sites with the vulnerable plugin activated
Discovery Timeline
- 2025-03-24 - CVE-2025-30521 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-30521
Vulnerability Analysis
The GP Back To Top plugin fails to validate the origin of state-changing HTTP requests. WordPress plugins are expected to protect sensitive actions with nonce tokens verified through wp_verify_nonce() or check_admin_referer(). When these checks are missing or improperly implemented, an attacker can craft an HTML form or JavaScript payload that submits a request from the victim's browser to the vulnerable WordPress endpoint. The victim's authenticated session cookies are automatically included, allowing the attacker's payload to execute administrative actions without the user's consent.
The attack impacts integrity but not confidentiality or availability, consistent with a CSRF flaw targeting configuration changes rather than data theft or service disruption. The EPSS score indicates a low observed probability of exploitation activity in the wild at the time of assessment.
Root Cause
The root cause is missing or insufficient CSRF protection on plugin request handlers. The plugin does not enforce nonce validation or verify the request Referer and Origin headers before processing state-changing operations. This mapping to [CWE-352] reflects a standard failure to bind privileged actions to a per-session, unpredictable token.
Attack Vector
Exploitation is network-based and requires user interaction. The attacker hosts a malicious page or delivers a crafted link through phishing. When an authenticated WordPress administrator visits the page, the browser automatically issues the forged request to the target site. Because the plugin does not verify request authenticity, the action is executed under the administrator's privileges. No authentication credentials are needed by the attacker; the victim's active session provides the required authorization.
Refer to the Patchstack WordPress Vulnerability Report for additional technical context.
Detection Methods for CVE-2025-30521
Indicators of Compromise
- Unexpected changes to GP Back To Top plugin configuration or display settings without a corresponding administrator action.
- Web server access logs showing POST requests to the plugin's admin endpoints with Referer headers pointing to external, untrusted domains.
- Administrator sessions producing requests immediately after visiting third-party sites or clicking external links.
Detection Strategies
- Review WordPress audit logs for plugin option changes correlated with administrator browsing activity outside wp-admin.
- Inspect HTTP request logs for state-changing requests to /wp-admin/ endpoints missing the _wpnonce parameter or containing invalid nonce values.
- Deploy a web application firewall rule that flags requests to the plugin's action handlers when the Origin or Referer header does not match the site's own domain.
Monitoring Recommendations
- Enable a WordPress activity logging plugin to record all administrative setting changes with timestamps and user attribution.
- Alert on anomalous configuration changes to plugin options stored in the wp_options table.
- Monitor for administrator accounts generating unusual outbound-referred requests to the WordPress admin interface.
How to Mitigate CVE-2025-30521
Immediate Actions Required
- Deactivate the GP Back To Top plugin until a patched version is confirmed available from the vendor.
- Restrict WordPress administrator access to trusted IP ranges through server or firewall controls.
- Require administrators to use a dedicated browser profile or session for wp-admin activity to reduce CSRF exposure from general web browsing.
Patch Information
At the time of publication, no fixed version is listed in the available advisory data. Consult the Patchstack WordPress Vulnerability Report and the WordPress plugin repository for updated releases. Apply any vendor-supplied patch that introduces nonce validation using wp_verify_nonce() and check_admin_referer() on all state-changing handlers.
Workarounds
- Replace GP Back To Top with an actively maintained alternative plugin that implements CSRF protection.
- Deploy a WordPress-aware WAF ruleset that blocks requests to plugin endpoints lacking a valid _wpnonce parameter.
- Enforce SameSite=Lax or Strict cookie attributes on WordPress session cookies to reduce cross-site request delivery.
- Train administrators to log out of wp-admin when not actively managing the site.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

