CVE-2025-31399 HIGH

CVE-2025-31399: WordPress CG Scroll To Top plugin <= 3.5 - CSRF to Stored XSS vulnerability

Vendor Chandan Garg
Product CG Scroll To Top
Weakness CWE-352 · CSRF
Published April 9, 2025
Last update April 28, 2026

CVSS base score

7.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

CG Scroll To Top versions 3.5 and earlier contain a cross-site request forgery (CSRF) vulnerability. An attacker can craft a malicious webpage that, when visited by a logged-in site administrator, performs unwanted actions on the site without the admin's knowledge or consent. The vulnerability requires the admin to visit the attacker's page but can affect site configuration or data.

What an attacker can do

03Attacker Capabilities

Perform unwanted actions on the site by tricking an admin into visiting a malicious webpage.

Potential impact on your site

04Site Impact

An attacker can modify site settings or data if they trick an admin into clicking a malicious link while logged in.

Conditions required to exploit

05Prerequisites

Admin must be logged in and visit an attacker-controlled page; no special privileges required to craft the attack.

Key dates

06Disclosure timeline

April 9, 2025 CVE published
April 28, 2026 Record updated

Related vulnerabilities

08Related CVE