CVE-2025-31399

WordPress CG Scroll To Top plugin <= 3.5 - CSRF to Stored XSS vulnerability

Published Apr 9, 2025 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

This vulnerability allows an attacker to carry out a cross‑site request forgery that results in malicious script code being stored in the CG Scroll To Top plugin data. When the plugin processes a request, the attacker’s script is persisted and later delivered to site visitors, causing arbitrary client‑side code to execute in the context of the website. The flaw is a classic stored XSS caused by inadequate protection against CSRF, identified as CWE‑352.

Affected Systems

The CG Scroll To Top plugin developed by Chandan Garg, versions up through 3.5, is affected. Any WordPress site that has installed or retained a version through 3.5 of this plugin is vulnerable.

Risk and Exploitability

The CVSS score of 7.1 indicates high severity, while an EPSS score of less than 1% suggests exploitation is currently unlikely. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attack requires a CSRF request originating from a trusted context or persuading an authenticated user to submit a carefully crafted request. Because the flaw results in stored XSS, the impact can persist and affect all site users visiting compromised pages. The overall risk remains moderate to high for sites that have not applied a fix.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the CG Scroll To Top plugin to a version newer than 3.5 once an update is released by the vendor.
  • If an upgrade is not feasible, disable or remove the plugin from the WordPress installation.
  • Restrict administrative or backend access that could be used to trigger the CSRF payload, for example by adding an additional authentication factor or whitelisting trusted IP addresses.

Generated by OpenCVE AI on May 1, 2026 at 10:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-10637 Cross-Site Request Forgery (CSRF) vulnerability in Chandan Garg CG Scroll To Top allows Stored XSS. This issue affects CG Scroll To Top: from n/a through 3.5.
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L'}

Type Values Removed Values Added
Description Cross-Site Request Forgery (CSRF) vulnerability in Chandan Garg CG Scroll To Top allows Stored XSS. This issue affects CG Scroll To Top: from n/a through 3.5. 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.
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L'}

Type Values Removed Values Added
Description Cross-Site Request Forgery (CSRF) vulnerability in Chandan Garg CG Scroll To Top allows Stored XSS. This issue affects CG Scroll To Top: from n/a through 3.5.
Title WordPress CG Scroll To Top plugin <= 3.5 - CSRF to Stored XSS vulnerability
Weaknesses CWE-352
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L'}

Subscriptions

No data.

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)

Sources

Status
PUBLISHED
Assigner
Patchstack
Published
Updated
Apr 28, 2026, 4:12 PM
Reserved
Mar 28, 2025, 10:59 AM
Status
Deferred
Published
Apr 9, 2025, 5:15 PM
Modified
Jun 17, 2026, 9:10 AM