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-2026-96765 Overview
CVE-2026-96765 is a Stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the WPO365 | SEAMLESS WORDPRESS + MICROSOFT INTEGRATION (WPO365 | LOGIN) plugin for WordPress. The flaw affects all versions up to and including 44.1. Unauthenticated attackers can inject arbitrary JavaScript through the id_token parameter due to insufficient input sanitization and output escaping. The malicious payload is persisted in the wpo365_errors transient for up to three days. Script execution occurs when an administrator later visits the WPO365 wizard page, enabling session hijacking, privilege abuse, or further compromise of the WordPress site.
Critical Impact
Unauthenticated stored XSS targeting WordPress administrators, enabling script execution in a privileged browser context without any user interaction beyond visiting the WPO365 wizard page.
Affected Products
- WPO365 | SEAMLESS WORDPRESS + MICROSOFT INTEGRATION (WPO365 | LOGIN) plugin for WordPress
- All versions through 44.1
- Fixed in version 45.0
Discovery Timeline
- 2026-10-10 - CVE-2026-96765 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-96765
Vulnerability Analysis
The vulnerability resides in how the WPO365 plugin processes forged OpenID Connect id_token values submitted in unauthenticated requests. When the plugin fails to validate or exchange the token, it stores error context, including claims extracted from the token, in a WordPress transient named wpo365_errors. That transient is read back and rendered inside the plugin's wizard interface used by administrators.
Because the stored claim values are not sanitized on input and not escaped on output, arbitrary HTML or JavaScript survives the round trip. When a WordPress administrator opens the WPO365 wizard page, the browser executes the attacker-controlled script within the admin session context. This permits actions such as creating rogue administrator accounts, exfiltrating nonces, or pivoting into plugin or theme code execution.
Root Cause
The root cause is missing output escaping and input sanitization when handling attacker-supplied JWT claim data. The plugin base64url-decodes the id_token payload and extracts fields such as unique_name and iss without treating them as untrusted. Those values are stored verbatim in the wpo365_errors transient and later serialized into the wizard page response consumed by the administrative React UI.
Attack Vector
An unauthenticated attacker crafts a request to a WPO365 endpoint and supplies a forged id_token whose base64url-decoded payload places malicious HTML in the unique_name or iss claim. The plugin stores the resulting error entry for up to three days. When any administrator subsequently loads the WPO365 wizard page, the stored payload renders and executes in the admin's browser. No prior authentication, user interaction, or social engineering beyond normal administrator usage is required. See the WordPress Id Token Service File and the WordPress Wizard Chunk JS (44.1) for the vulnerable code paths.
Detection Methods for CVE-2026-96765
Indicators of Compromise
- Unexpected entries in the wpo365_errors WordPress transient containing HTML tags, <script> elements, or event handler attributes such as onerror= or onload=.
- Inbound HTTP requests to WPO365 login or callback endpoints carrying id_token parameters with abnormally large payloads or non-standard JWT headers.
- Creation of new WordPress administrator accounts or modification of user roles shortly after an administrator session accessed the WPO365 wizard page.
- Outbound requests from administrator browsers to unfamiliar external hosts immediately after wizard page views.
Detection Strategies
- Inspect base64url-decoded id_token payloads at the web application firewall for unique_name or iss claims containing <, >, or JavaScript URI schemes.
- Audit the wp_options table for _transient_wpo365_errors and _transient_timeout_wpo365_errors entries and alert on content that fails HTML-safe validation.
- Correlate WPO365 wizard page accesses with subsequent privileged WordPress actions in the same session to surface post-exploitation behavior.
Monitoring Recommendations
- Enable verbose request logging on wp-admin and WPO365 plugin routes, retaining full query strings and POST bodies for forensic review.
- Monitor WordPress audit logs for user role changes, plugin or theme file edits, and new admin creation events following WPO365 interactions.
- Track browser-side Content Security Policy (CSP) violation reports from the WordPress admin interface to catch injected inline scripts.
How to Mitigate CVE-2026-96765
Immediate Actions Required
- Update the WPO365 | LOGIN plugin to version 45.0 or later on every affected WordPress site.
- Clear the wpo365_errors transient to purge any attacker-supplied payload that may already be stored.
- Review WordPress administrator accounts, active sessions, and recent plugin or theme modifications for signs of compromise.
- Rotate credentials and application passwords for administrator accounts that accessed the WPO365 wizard page during the exposure window.
Patch Information
The maintainer released the fix in WPO365 | LOGIN version 45.0. The relevant source change is documented in WordPress Plugin Changeset 3727410 and reflected in WordPress Wizard Chunk JS (45.0). Additional context is available in the Wordfence Vulnerability Report.
Workarounds
- Restrict access to the WPO365 wizard page and wp-admin paths to trusted IP addresses using web server or WAF rules until the plugin is updated.
- Deploy a WAF signature that blocks requests containing id_token parameters whose decoded payload includes HTML control characters or script tokens.
- Disable the WPO365 plugin entirely if an immediate update to version 45.0 is not feasible.
# Example: delete the wpo365_errors transient via WP-CLI to purge stored payloads
wp transient delete wpo365_errors
wp plugin update wpo365-login --version=45.0
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

