CVE-2025-12416: CWE-352 Cross-Site Request Forgery (CSRF) in mahype Pagerank tools
The Pagerank Tools plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Cross-Site Request Forgery in all versions up to, and including, 1.1.5. This is due to missing nonce validation on the pr_save_settings() function and insufficient input sanitization. This makes it possible for unauthenticated attackers to inject malicious web scripts via a forged request granted they can trick a site administrator into performing an action such as clicking on a link. The injected scripts will execute whenever a user accesses the plugin's settings page.
AI Analysis
Technical Summary
The Pagerank Tools plugin for WordPress, maintained by mahype, suffers from a Stored Cross-Site Scripting vulnerability enabled by a Cross-Site Request Forgery attack vector (CVE-2025-12416). The root cause is the absence of nonce validation in the pr_save_settings() function, combined with inadequate input sanitization of user-supplied data. Nonce validation is a critical security mechanism in WordPress to ensure that requests are legitimate and initiated by authorized users. Without this protection, attackers can craft malicious requests that, when executed by an authenticated administrator (via social engineering such as clicking a link), inject persistent malicious scripts into the plugin's settings. These scripts execute whenever the settings page is loaded, potentially allowing attackers to steal cookies, hijack sessions, or perform actions on behalf of the administrator. The vulnerability affects all versions up to and including 1.1.5. The CVSS 3.1 base score is 6.1, reflecting network attack vector, low attack complexity, no privileges required, but requiring user interaction and impacting confidentiality and integrity with a scope change. No patches or official fixes are currently available, and no exploits have been observed in the wild. This vulnerability highlights the importance of nonce validation and proper input sanitization in WordPress plugin development to prevent CSRF and stored XSS attacks.
Potential Impact
This vulnerability can lead to unauthorized script injection in the WordPress admin environment, compromising the confidentiality and integrity of the affected site. Attackers can steal sensitive information such as authentication cookies or tokens, enabling session hijacking and unauthorized access. They may also manipulate plugin settings or perform administrative actions without consent. Although availability is not directly impacted, the breach of administrative control can lead to further exploitation or persistent backdoors. Organizations running websites with the Pagerank Tools plugin are at risk of targeted attacks, especially if administrators are tricked into interacting with malicious content. The scope of impact is significant for websites relying on this plugin for SEO or ranking metrics, potentially affecting site reputation and user trust.
Mitigation Recommendations
Immediate mitigation involves disabling or removing the Pagerank Tools plugin until a patched version is released. Administrators should avoid clicking on suspicious links or visiting untrusted websites while logged into WordPress admin. Implement web application firewalls (WAFs) with rules to detect and block CSRF and XSS attack patterns targeting the plugin’s endpoints. Site owners should enforce strict Content Security Policies (CSP) to limit script execution sources. Monitoring admin activity logs for unusual changes in plugin settings can help detect exploitation attempts. Developers should update the plugin to include nonce validation in all state-changing requests and apply rigorous input sanitization and output encoding. Until a patch is available, consider restricting admin access to trusted IP addresses and using multi-factor authentication to reduce risk.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, India, Brazil, Japan, Netherlands
CVE-2025-12416: CWE-352 Cross-Site Request Forgery (CSRF) in mahype Pagerank tools
Description
The Pagerank Tools plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Cross-Site Request Forgery in all versions up to, and including, 1.1.5. This is due to missing nonce validation on the pr_save_settings() function and insufficient input sanitization. This makes it possible for unauthenticated attackers to inject malicious web scripts via a forged request granted they can trick a site administrator into performing an action such as clicking on a link. The injected scripts will execute whenever a user accesses the plugin's settings page.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Pagerank Tools plugin for WordPress, maintained by mahype, suffers from a Stored Cross-Site Scripting vulnerability enabled by a Cross-Site Request Forgery attack vector (CVE-2025-12416). The root cause is the absence of nonce validation in the pr_save_settings() function, combined with inadequate input sanitization of user-supplied data. Nonce validation is a critical security mechanism in WordPress to ensure that requests are legitimate and initiated by authorized users. Without this protection, attackers can craft malicious requests that, when executed by an authenticated administrator (via social engineering such as clicking a link), inject persistent malicious scripts into the plugin's settings. These scripts execute whenever the settings page is loaded, potentially allowing attackers to steal cookies, hijack sessions, or perform actions on behalf of the administrator. The vulnerability affects all versions up to and including 1.1.5. The CVSS 3.1 base score is 6.1, reflecting network attack vector, low attack complexity, no privileges required, but requiring user interaction and impacting confidentiality and integrity with a scope change. No patches or official fixes are currently available, and no exploits have been observed in the wild. This vulnerability highlights the importance of nonce validation and proper input sanitization in WordPress plugin development to prevent CSRF and stored XSS attacks.
Potential Impact
This vulnerability can lead to unauthorized script injection in the WordPress admin environment, compromising the confidentiality and integrity of the affected site. Attackers can steal sensitive information such as authentication cookies or tokens, enabling session hijacking and unauthorized access. They may also manipulate plugin settings or perform administrative actions without consent. Although availability is not directly impacted, the breach of administrative control can lead to further exploitation or persistent backdoors. Organizations running websites with the Pagerank Tools plugin are at risk of targeted attacks, especially if administrators are tricked into interacting with malicious content. The scope of impact is significant for websites relying on this plugin for SEO or ranking metrics, potentially affecting site reputation and user trust.
Mitigation Recommendations
Immediate mitigation involves disabling or removing the Pagerank Tools plugin until a patched version is released. Administrators should avoid clicking on suspicious links or visiting untrusted websites while logged into WordPress admin. Implement web application firewalls (WAFs) with rules to detect and block CSRF and XSS attack patterns targeting the plugin’s endpoints. Site owners should enforce strict Content Security Policies (CSP) to limit script execution sources. Monitoring admin activity logs for unusual changes in plugin settings can help detect exploitation attempts. Developers should update the plugin to include nonce validation in all state-changing requests and apply rigorous input sanitization and output encoding. Until a patch is available, consider restricting admin access to trusted IP addresses and using multi-factor authentication to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-10-28T15:45:10.914Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 690984df2b77ca42b4883f4c
Added to database: 11/4/2025, 4:45:19 AM
Last enriched: 2/27/2026, 8:33:42 PM
Last updated: 3/23/2026, 8:53:54 PM
Views: 123
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.