CVE-2025-13848
📋 TL;DR
The STM Gallery WordPress plugin versions up to 0.9 have a stored cross-site scripting vulnerability in the 'composicion' parameter. Authenticated attackers with Contributor access or higher can inject malicious scripts that execute when users view affected pages. This affects all WordPress sites using vulnerable versions of the plugin.
💻 Affected Systems
- STM Gallery WordPress Plugin
⚠️ Manual Verification Required
This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.
Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).
🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Attackers could steal administrator credentials, redirect users to malicious sites, deface websites, or perform actions on behalf of authenticated users.
Likely Case
Attackers with contributor accounts inject malicious scripts to steal user session cookies or redirect visitors to phishing sites.
If Mitigated
With proper input validation and output escaping, no script execution occurs, though malicious content may still be stored.
🎯 Exploit Status
Exploitation requires authenticated access but is technically simple once access is obtained.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Version after 0.9
Vendor Advisory: https://plugins.trac.wordpress.org/browser/stm-gallery/
Restart Required: No
Instructions:
1. Log into WordPress admin panel
2. Navigate to Plugins → Installed Plugins
3. Find STM Gallery plugin
4. Click 'Update Now' if update available
5. If no update, deactivate and remove plugin
6. Install updated version from WordPress repository
🔧 Temporary Workarounds
Disable Plugin
allTemporarily deactivate STM Gallery plugin until patched version is available
wp plugin deactivate stm-gallery
Restrict User Roles
allRemove Contributor role access or implement stricter role-based access controls
🧯 If You Can't Patch
- Implement web application firewall (WAF) rules to block XSS payloads in 'composicion' parameter
- Apply Content Security Policy (CSP) headers to restrict script execution sources
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel → Plugins → Installed Plugins for STM Gallery version 0.9 or earlier
Check Version:
wp plugin get stm-gallery --field=version
Verify Fix Applied:
Verify plugin version is greater than 0.9 and test 'composicion' parameter with XSS payloads
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to gallery endpoints with script tags in parameters
- Multiple failed login attempts followed by gallery parameter manipulation
Network Indicators:
- HTTP requests containing <script> tags in 'composicion' parameter
- Outbound connections to suspicious domains after gallery page views
SIEM Query:
source="wordpress.log" AND ("composicion" AND ("<script>" OR "javascript:" OR "onerror="))