CVE-2025-31399: Cross-Site Request Forgery (CSRF) in Chandan Garg CG Scroll To Top
Cross-Site Request Forgery (CSRF) vulnerability in Chandan Garg CG Scroll To Top cg-scroll-to-top allows Stored XSS.This issue affects CG Scroll To Top: from n/a through <= 3.5.
AI Analysis
Technical Summary
CVE-2025-31399 identifies a Cross-Site Request Forgery (CSRF) vulnerability in the Chandan Garg CG Scroll To Top WordPress plugin, specifically affecting versions up to and including 3.5. The vulnerability allows attackers to trick authenticated users into submitting unauthorized requests to the vulnerable website, which in turn enables the injection of stored malicious scripts (Stored XSS). Stored XSS occurs when malicious payloads are saved on the server and served to users, potentially leading to session hijacking, defacement, or redirection to malicious sites. The CSRF aspect means that an attacker can craft a request that an authenticated user unknowingly executes, bypassing normal authorization checks. This combination is particularly dangerous because it does not require direct user interaction beyond visiting a malicious page, and the stored nature of the XSS means the attack can persist and affect multiple users. The vulnerability was reserved in late March 2025 and published in April 2025, with no CVSS score assigned yet and no known exploits in the wild. The plugin is used primarily in WordPress environments, which are widely deployed globally, increasing the potential attack surface. The lack of patches or mitigation details in the advisory suggests that users must take immediate protective actions. The vulnerability highlights the importance of proper CSRF protections and input sanitization in WordPress plugins to prevent persistent client-side attacks.
Potential Impact
The impact of CVE-2025-31399 is significant for organizations using the CG Scroll To Top plugin on WordPress sites. Exploitation can lead to stored XSS attacks, allowing attackers to execute arbitrary JavaScript in the context of the victim's browser. This can result in session hijacking, theft of sensitive information such as cookies or credentials, unauthorized actions performed on behalf of users, and potential defacement or malware distribution. Since the vulnerability requires an authenticated user to be tricked into visiting a malicious page, it primarily threatens sites with logged-in users, including administrators. The persistence of the stored XSS increases the risk by affecting multiple users over time. This can damage organizational reputation, lead to data breaches, and cause operational disruptions. Given WordPress's widespread use, the vulnerability could affect a broad range of sectors including e-commerce, media, education, and government websites. Without timely mitigation, attackers could leverage this vulnerability for targeted attacks or mass exploitation campaigns.
Mitigation Recommendations
To mitigate CVE-2025-31399, organizations should immediately audit their WordPress installations for the presence of the CG Scroll To Top plugin and its version. If the plugin is installed and unpatched, disable or remove it until a security update is available. Implement Web Application Firewall (WAF) rules to detect and block suspicious CSRF and XSS payloads targeting the plugin endpoints. Enforce strict Content Security Policy (CSP) headers to limit the execution of unauthorized scripts. Educate users, especially administrators, to avoid clicking on suspicious links or visiting untrusted websites while authenticated. Monitor logs for unusual activity indicative of CSRF or XSS exploitation attempts. Developers maintaining the plugin should prioritize releasing a patch that includes CSRF tokens for state-changing requests and proper input validation and output encoding to prevent stored XSS. Additionally, site owners should ensure WordPress core and all plugins are regularly updated and consider implementing multi-factor authentication to reduce the risk of session hijacking.
Affected Countries
United States, India, United Kingdom, Germany, Canada, Australia, France, Brazil, Japan, Netherlands
CVE-2025-31399: Cross-Site Request Forgery (CSRF) in Chandan Garg CG Scroll To Top
Description
Cross-Site Request Forgery (CSRF) vulnerability in Chandan Garg CG Scroll To Top cg-scroll-to-top allows Stored XSS.This issue affects CG Scroll To Top: from n/a through <= 3.5.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-31399 identifies a Cross-Site Request Forgery (CSRF) vulnerability in the Chandan Garg CG Scroll To Top WordPress plugin, specifically affecting versions up to and including 3.5. The vulnerability allows attackers to trick authenticated users into submitting unauthorized requests to the vulnerable website, which in turn enables the injection of stored malicious scripts (Stored XSS). Stored XSS occurs when malicious payloads are saved on the server and served to users, potentially leading to session hijacking, defacement, or redirection to malicious sites. The CSRF aspect means that an attacker can craft a request that an authenticated user unknowingly executes, bypassing normal authorization checks. This combination is particularly dangerous because it does not require direct user interaction beyond visiting a malicious page, and the stored nature of the XSS means the attack can persist and affect multiple users. The vulnerability was reserved in late March 2025 and published in April 2025, with no CVSS score assigned yet and no known exploits in the wild. The plugin is used primarily in WordPress environments, which are widely deployed globally, increasing the potential attack surface. The lack of patches or mitigation details in the advisory suggests that users must take immediate protective actions. The vulnerability highlights the importance of proper CSRF protections and input sanitization in WordPress plugins to prevent persistent client-side attacks.
Potential Impact
The impact of CVE-2025-31399 is significant for organizations using the CG Scroll To Top plugin on WordPress sites. Exploitation can lead to stored XSS attacks, allowing attackers to execute arbitrary JavaScript in the context of the victim's browser. This can result in session hijacking, theft of sensitive information such as cookies or credentials, unauthorized actions performed on behalf of users, and potential defacement or malware distribution. Since the vulnerability requires an authenticated user to be tricked into visiting a malicious page, it primarily threatens sites with logged-in users, including administrators. The persistence of the stored XSS increases the risk by affecting multiple users over time. This can damage organizational reputation, lead to data breaches, and cause operational disruptions. Given WordPress's widespread use, the vulnerability could affect a broad range of sectors including e-commerce, media, education, and government websites. Without timely mitigation, attackers could leverage this vulnerability for targeted attacks or mass exploitation campaigns.
Mitigation Recommendations
To mitigate CVE-2025-31399, organizations should immediately audit their WordPress installations for the presence of the CG Scroll To Top plugin and its version. If the plugin is installed and unpatched, disable or remove it until a security update is available. Implement Web Application Firewall (WAF) rules to detect and block suspicious CSRF and XSS payloads targeting the plugin endpoints. Enforce strict Content Security Policy (CSP) headers to limit the execution of unauthorized scripts. Educate users, especially administrators, to avoid clicking on suspicious links or visiting untrusted websites while authenticated. Monitor logs for unusual activity indicative of CSRF or XSS exploitation attempts. Developers maintaining the plugin should prioritize releasing a patch that includes CSRF tokens for state-changing requests and proper input validation and output encoding to prevent stored XSS. Additionally, site owners should ensure WordPress core and all plugins are regularly updated and consider implementing multi-factor authentication to reduce the risk of session hijacking.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Patchstack
- Date Reserved
- 2025-03-28T10:59:36.420Z
- Cvss Version
- null
- State
- PUBLISHED
Threat ID: 69cd734ae6bfc5ba1def1899
Added to database: 4/1/2026, 7:34:34 PM
Last enriched: 4/2/2026, 1:08:49 AM
Last updated: 4/4/2026, 6:38:00 AM
Views: 5
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.
External Links
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.