CVE-2025-13848

6.4 MEDIUM

📋 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

Products:
  • STM Gallery WordPress Plugin
Versions: All versions up to and including 0.9
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with STM Gallery plugin enabled and at least one user with Contributor role or higher.

⚠️ 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.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. 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.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

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

all

Temporarily deactivate STM Gallery plugin until patched version is available

wp plugin deactivate stm-gallery

Restrict User Roles

all

Remove 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="))

🔗 References

📤 Share & Export