CVE-2024-12047 Cross-site scripting in WP Compress – Instant Performance & Speed Optimization
Unauthenticated attackers can inject arbitrary web scripts via the custom_server parameter, requiring user interaction to execute.
- 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-2024-12047?
CVE-2024-12047 is a medium-severity cross-site scripting vulnerability in aresit WP Compress – Instant Performance & Speed Optimization, published on 4 Jan 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
The WP Compress – Instant Performance & Speed Optimization plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the ‘custom_server’ parameter in all versions up to, and including, 6.30.03 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.
Weakness: CWE-79
Which versions are affected by CVE-2024-12047?
It affects 1 product.
Products include Wpcompress Wp Compress.
How do I fix CVE-2024-12047?
No fix has been published for CVE-2024-12047 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-12047 being exploited?
There is no known exploitation of CVE-2024-12047 in the wild and no public exploit code.
Other vulnerabilities in aresit WP Compress – Instant Performance & Speed Optimization
- CVE-2023-6699 WP Compress – Image Optimizer [All-In-One] <= 6.10.33 - Unauthenticated Directory Traversal via css
- CVE-2025-2110 WP Compress <= 6.30.15 - Authenticated (Subscriber+) Missing Authorization via Multiple Functions
- CVE-2024-1934 WP Compress – Image Optimizer <= 6.11.08 - Missing Authorization to Unauthenticated CDN Modification
- CVE-2025-47546 WordPress WP Compress plugin <= 6.30.30 - Cross Site Request Forgery (CSRF) Vulnerability
- CVE-2024-47384 WordPress WP Compress plugin <= 6.20.13 - Reflected Cross Site Scripting (XSS) vulnerability
Sources
Also known as GHSA-rfx3-gmfp-v633.