Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-57890 Overview
CVE-2025-57890 is a stored cross-site scripting (XSS) vulnerability in the Pierre Lannoy Sessions plugin for WordPress. The flaw affects all versions up to and including 3.2.0. It results from improper neutralization of user-supplied input during web page generation, classified under [CWE-79]. An authenticated attacker with high privileges can inject malicious JavaScript that persists in the plugin's output. The payload executes in the browser of any user who views the affected page, enabling session theft, account takeover attempts, or redirection to attacker-controlled resources.
Critical Impact
Stored XSS in the Sessions plugin allows persistent injection of scripts that execute in administrator and visitor browsers within the WordPress site context.
Affected Products
- Pierre Lannoy Sessions plugin for WordPress
- All versions from initial release through 3.2.0
- WordPress sites that have the Sessions plugin installed and activated
Discovery Timeline
- 2025-08-22 - CVE CVE-2025-57890 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-57890
Vulnerability Analysis
The Sessions plugin fails to sanitize or escape input that is later rendered in HTML output generated by the plugin. When an authenticated user with elevated privileges supplies crafted input containing HTML or JavaScript, the plugin stores the payload and renders it without encoding. Any user visiting the affected page then executes the injected script within the origin of the WordPress site.
Stored XSS in a plugin that handles session data is particularly consequential because the vulnerable surface is often rendered inside administrative dashboards. Payloads executing in an administrator session can issue authenticated requests, modify plugin configuration, create new accounts, or exfiltrate cookies and tokens accessible to the browser.
The scope change in the CVSS vector reflects that script execution crosses the trust boundary from the vulnerable component into other components rendered in the same browser context.
Root Cause
The root cause is missing output encoding or input sanitization on data fields processed by the Sessions plugin before version 3.2.1. The plugin does not apply WordPress sanitization helpers such as esc_html(), esc_attr(), or wp_kses() to user-controlled values on the output path. This permits raw HTML and <script> elements to be written into the DOM.
Attack Vector
Exploitation requires network access to the WordPress site and an authenticated account with high privileges that can submit input accepted by the plugin. User interaction is needed to trigger the stored payload, typically when another user navigates to the affected page. The vulnerability mechanism is described in the Patchstack WordPress Plugin XSS Advisory.
Detection Methods for CVE-2025-57890
Indicators of Compromise
- Unexpected <script>, <iframe>, or event-handler attributes (onerror, onload) stored in WordPress database tables used by the Sessions plugin
- Outbound browser requests from administrator sessions to unknown domains following access to plugin pages
- New or modified WordPress administrator accounts created shortly after plugin pages were viewed
- Browser console errors or Content Security Policy violations reported from plugin-rendered pages
Detection Strategies
- Audit the WordPress wp_options and plugin-specific tables for stored HTML or JavaScript payloads in Sessions-related fields
- Review web server access logs for requests to Sessions plugin endpoints from high-privilege accounts followed by anomalous admin activity
- Inspect rendered HTML of plugin pages for unescaped user-controlled content
Monitoring Recommendations
- Enable WordPress audit logging to capture configuration changes made through the Sessions plugin
- Deploy a web application firewall rule set that identifies XSS payload patterns in POST requests to /wp-admin/ endpoints
- Monitor for creation of new administrator accounts and privilege changes correlated with plugin page access
How to Mitigate CVE-2025-57890
Immediate Actions Required
- Identify all WordPress sites running the Pierre Lannoy Sessions plugin and inventory installed versions
- Update the Sessions plugin to a version newer than 3.2.0 as soon as a fixed release is available
- Rotate credentials for high-privilege WordPress accounts if exploitation is suspected
- Review stored plugin data for injected markup and remove any malicious entries
Patch Information
The advisory covers versions up to and including 3.2.0. Administrators should consult the Patchstack WordPress Plugin XSS Advisory for the current fixed version and apply the vendor-supplied update through the WordPress plugin manager.
Workarounds
- Deactivate and remove the Sessions plugin until a patched version is installed
- Restrict administrative access to trusted IP ranges using server-level ACLs
- Enforce a strict Content Security Policy that blocks inline scripts in the WordPress admin interface
- Limit the number of accounts holding high-privilege roles that can submit input to the plugin
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

