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.
Published: 2025-04-09
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 23 Apr 2026 15:00:00 +0000

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'}


Wed, 01 Apr 2026 23:45:00 +0000

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'}


Wed, 09 Apr 2025 16:30:00 +0000

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.

cve-icon MITRE

Status: PUBLISHED

Assigner: Patchstack

Published:

Updated: 2026-04-28T16:12:06.119Z

Reserved: 2025-03-28T10:59:36.420Z

Link: CVE-2025-31399

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2025-04-09T17:15:38.683

Modified: 2026-04-23T15:27:45.383

Link: CVE-2025-31399

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-01T11:00:15Z

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)