CVE-2025-31391 WordPress Script Compressor plugin <= 1.7.1 - CSRF to Stored XSS vulnerability

High 7.1 Published Updated

A CSRF vulnerability in the Script Compressor plugin allows attackers to inject stored XSS payloads, potentially compromising user sessions and site integrity.

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-31391?

CVE-2025-31391 is a high-severity vulnerability in regen Script Compressor, 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 regen Script Compressor script-compressor allows Stored XSS.This issue affects Script Compressor: from n/a through <= 1.7.1.

Weakness: CWE-352

Which versions are affected by CVE-2025-31391?

How do I fix CVE-2025-31391?

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

Is CVE-2025-31391 being exploited?

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

Sources

Also known as GHSA-pxh9-975p-9rpv.

Is CVE-2025-31391 in your software?

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

Check your SBOMs for free