CVE-2025-4171
📋 TL;DR
This stored XSS vulnerability in the WZ Followed Posts WordPress plugin allows authenticated attackers with contributor-level access or higher to inject malicious scripts via the 'wfp' shortcode. The scripts execute when users view compromised pages, potentially stealing session cookies or redirecting visitors. All WordPress sites using this plugin up to version 3.1.0 are affected.
💻 Affected Systems
- WZ Followed Posts – Display what visitors are reading 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 session cookies, take over the WordPress site, install backdoors, deface pages, or redirect visitors to malicious sites.
Likely Case
Attackers with contributor access inject malicious scripts to steal user session cookies, potentially compromising user accounts and spreading malware to visitors.
If Mitigated
With proper user role management and content review, impact is limited to potential defacement of individual posts by malicious contributors.
🎯 Exploit Status
Exploitation requires authenticated access with contributor privileges or higher. The vulnerability is straightforward to exploit once an attacker has valid credentials.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Version 3.1.1 or later
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'WZ Followed Posts' plugin. 4. Click 'Update Now' if available. 5. If no update appears, manually download version 3.1.1+ from WordPress.org and replace the plugin files.
🔧 Temporary Workarounds
Disable the vulnerable plugin
allTemporarily deactivate the WZ Followed Posts plugin until patched
wp plugin deactivate where-did-they-go-from-here
Restrict user roles
allTemporarily remove contributor-level access or implement stricter content review
🧯 If You Can't Patch
- Implement strict content review process for all posts and pages before publishing
- Use a web application firewall (WAF) with XSS protection rules
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin → Plugins → Installed Plugins for 'WZ Followed Posts' version 3.1.0 or earlier
Check Version:
wp plugin get where-did-they-go-from-here --field=version
Verify Fix Applied:
Verify plugin version is 3.1.1 or later in WordPress admin panel
📡 Detection & Monitoring
Log Indicators:
- Unusual post/page edits by contributor-level users
- Suspicious script tags in post content containing 'wfp' shortcode
Network Indicators:
- Unexpected JavaScript execution from WordPress posts/pages
- Suspicious outbound connections from site visitors
SIEM Query:
source="wordpress" AND (event="post_updated" OR event="page_updated") AND user_role="contributor" AND content CONTAINS "wfp"