CVE-2025-57964

6.5 MEDIUM

📋 TL;DR

This stored cross-site scripting (XSS) vulnerability in the Library Bookshelves WordPress plugin allows attackers to inject malicious scripts into web pages. When users view affected pages, the scripts execute in their browsers, potentially stealing session cookies or performing actions on their behalf. All WordPress sites using Library Bookshelves plugin versions up to 5.11 are affected.

💻 Affected Systems

Products:
  • Library Bookshelves WordPress Plugin
Versions: All versions up to and including 5.11
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires the plugin to be installed and active on a WordPress site.

⚠️ 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 session cookies, take over WordPress sites, deface websites, or redirect users to malicious sites.

🟠

Likely Case

Attackers inject malicious scripts that steal user session data or credentials when users visit compromised pages.

🟢

If Mitigated

With proper input validation and output encoding, malicious scripts would be neutralized before reaching users' browsers.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires the ability to inject malicious input into the plugin's functionality, which typically requires some level of access or user interaction.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version after 5.11

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/library-bookshelves/vulnerability/wordpress-library-bookshelves-plugin-5-11-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find Library Bookshelves plugin. 4. Click 'Update Now' if update is available. 5. If no update appears, manually download latest version from WordPress repository and replace plugin files.

🔧 Temporary Workarounds

Disable Plugin

WordPress

Temporarily disable the Library Bookshelves plugin until patched.

wp plugin deactivate library-bookshelves

Content Security Policy

all

Implement strict Content Security Policy headers to mitigate XSS impact.

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Add to wp-config.php: header("Content-Security-Policy: default-src 'self'");

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block XSS payloads.
  • Disable user input fields that could be exploited until patching is possible.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for Library Bookshelves version 5.11 or earlier.

Check Version:

wp plugin get library-bookshelves --field=version

Verify Fix Applied:

Verify plugin version is higher than 5.11 in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to plugin endpoints with script tags or JavaScript code
  • Multiple failed attempts to access plugin admin functions

Network Indicators:

  • HTTP requests containing <script> tags or JavaScript payloads to plugin URLs

SIEM Query:

source="wordpress" AND (uri_path="/wp-content/plugins/library-bookshelves" AND (http_method="POST" OR http_method="PUT") AND (content CONTAINS "<script>" OR content CONTAINS "javascript:"))

🔗 References

📤 Share & Export