CVE-2025-4392 Shared Files <= 1.7.48 - Unauthenticated Stored Cross-Site Scripting via sanitize_file Function
Unauthenticated attackers can inject arbitrary scripts via HTML file uploads, leading to code execution or account takeover when users view the files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-4392?
CVE-2025-4392 is a high-severity cross-site scripting vulnerability in anssilaitila Shared Files – Frontend File Upload Form & Secure File Sharing, published on 3 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The Shared Files – Frontend File Upload Form & Secure File Sharing plugin for WordPress is vulnerable to Stored Cross-Site Scripting via html File uploads in all versions up to, and including, 1.7.48 due to insufficient input sanitization and output escaping within the sanitize_file() function. This makes it possible for unauthenticated attackers to bypass the plugin’s MIME-only checks and inject arbitrary web scripts in pages that will execute whenever a user accesses the html file.
Weakness: CWE-79
Which versions are affected by CVE-2025-4392?
How do I fix CVE-2025-4392?
No fix has been published for CVE-2025-4392 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-2025-4392 being exploited?
There is no known exploitation of CVE-2025-4392 in the wild and no public exploit code.
Sources
Also known as GHSA-jqmx-89c6-9c25.