Skip to main content
Vulnerability Database/CVE-2026-85492

CVE-2026-85492: All in One SEO Plugin DOM-Based XSS Flaw

CVE-2026-85492 is a DOM-based cross-site scripting vulnerability in All in One SEO WordPress plugin that lets attackers inject malicious scripts via URL pathnames. This article covers technical details, affected versions, and mitigation.

Published:

CVE-2026-85492 Overview

CVE-2026-85492 is a DOM-based Cross-Site Scripting (XSS) vulnerability [CWE-79] in the All in One SEO plugin for WordPress. The flaw affects all versions up to and including 5.0.1.1. The plugin fails to sanitize input and escape output when processing the URL pathname inside the SEO Preview panel. Unauthenticated attackers can craft malicious URLs that execute arbitrary JavaScript in the browser of a victim who holds the aioseo_manage_seo capability and opens the SEO Preview panel in the WordPress admin toolbar.

Critical Impact

Successful exploitation allows script execution in an authenticated administrator's browser session, enabling account takeover, content tampering, and lateral movement within the WordPress admin interface.

Affected Products

  • All in One SEO plugin for WordPress — versions through 5.0.1.1
  • WordPress sites exposing the SEO Preview panel to authenticated users with the aioseo_manage_seo capability
  • The GoogleSearchPreview and app-core client-side JavaScript components bundled with the plugin

Discovery Timeline

  • 2026-10-02 - CVE-2026-85492 published to NVD
  • 2026-10-03 - Last updated in NVD database

Technical Details for CVE-2026-85492

Vulnerability Analysis

The vulnerability resides in the client-side rendering logic of the SEO Preview panel, specifically within the GoogleSearchPreview.8286359f.js and app-core.36551fe5.js bundles shipped with the plugin. The panel reads the current page's URL pathname and reflects it into the DOM without applying sanitization or output escaping. Because the injection occurs entirely in the browser, the malicious payload never traverses the server, which limits the effectiveness of traditional server-side input filters.

Triggering the flaw requires user interaction. The victim must be authenticated, hold the aioseo_manage_seo capability, and open the SEO Preview panel while viewing a page whose URL contains the attacker-controlled payload. The scope change in the CVSS vector reflects that the executed script runs in the authenticated admin context, broadening the blast radius beyond the originally vulnerable component.

Root Cause

The root cause is insufficient input sanitization and output escaping of URL pathname data consumed by the SEO Preview feature. The affected JavaScript assembles preview content by concatenating pathname segments directly into the DOM. Without encoding, script-bearing pathname fragments are parsed and executed by the browser.

Attack Vector

An attacker crafts a URL on the target WordPress site that embeds a JavaScript payload inside the pathname. The attacker then lures an authorized user—typically an editor or administrator with the aioseo_manage_seo capability—into visiting that URL and expanding the SEO Preview panel from the admin toolbar. On interaction, the payload executes with the privileges of the victim's active session. See the Wordfence vulnerability analysis and the vulnerable GoogleSearchPreview JavaScript for the affected code paths.

Detection Methods for CVE-2026-85492

Indicators of Compromise

  • Web server access logs containing requests with suspicious pathname segments such as <script>, javascript:, or URL-encoded variants targeting authenticated admin users.
  • Unexpected outbound requests from administrator browsers to attacker-controlled domains following visits to crafted URLs.
  • Creation of new WordPress administrator accounts or modifications to user roles with no corresponding admin action.

Detection Strategies

  • Inspect HTTP request logs for URL pathnames containing HTML tags, event handlers, or encoded script delimiters directed at pages visible to privileged users.
  • Monitor WordPress audit logs for configuration changes, plugin installations, or user privilege changes shortly after admin page visits.
  • Deploy browser-side Content Security Policy (CSP) violation reporting to surface inline script execution attempts in the admin interface.

Monitoring Recommendations

  • Enable detailed access logging on /wp-admin/ paths and correlate with authenticated session identifiers.
  • Alert on anomalous JavaScript errors or CSP violations originating from the WordPress admin toolbar.
  • Track the installed version of the All in One SEO plugin across all managed WordPress instances to confirm patch coverage.

How to Mitigate CVE-2026-85492

Immediate Actions Required

  • Upgrade the All in One SEO plugin to version 5.0.2 or later on every WordPress site in the environment.
  • Audit WordPress user accounts and revoke the aioseo_manage_seo capability from any role that does not require it.
  • Review recent administrator activity logs for signs of unauthorized account creation, option changes, or injected content.

Patch Information

The vendor addressed the issue in All in One SEO version 5.0.2. The code changes are documented in the official plugin changeset 5.0.2, which applies proper sanitization and output escaping to the pathname data rendered by the SEO Preview panel.

Workarounds

  • Temporarily disable the All in One SEO plugin until the patched version can be deployed.
  • Instruct privileged users to avoid opening the SEO Preview panel on unfamiliar URLs until the upgrade is complete.
  • Deploy a web application firewall rule to block requests whose URL pathnames contain HTML or script delimiters.
bash
# Update the All in One SEO plugin via WP-CLI
wp plugin update all-in-one-seo-pack --version=5.0.2

# Verify the installed version across sites
wp plugin get all-in-one-seo-pack --field=version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.