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

High 7.1 Published Updated

Attackers can exploit CSRF to inject stored XSS payloads in the CG Scroll To Top WordPress plugin, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-31399?

CVE-2025-31399 is a high-severity vulnerability in Chandan Garg CG Scroll To Top, published on 9 Apr 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-352

Which versions are affected by CVE-2025-31399?

How do I fix CVE-2025-31399?

No fix has been published for CVE-2025-31399 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-31399 being exploited?

There is no known exploitation of CVE-2025-31399 in the wild and no public exploit code.

Sources

Also known as GHSA-79hr-83rq-v4gf.

Is CVE-2025-31399 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free