A security advisory has been issued for two vulnerabilities in the All in One SEO WordPress plugin, which is active on more than two million websites. Both flaws allow unauthenticated attackers to execute arbitrary shortcodes or inject malicious scripts, though each one depends on specific conditions being met.
What Is the All in One SEO WordPress Plugin?
The All in One SEO (AIOSEO) WordPress plugin is a widely used SEO tool with over 2 million users. It manages search engine optimization settings and provides tools for XML sitemaps, structured data, redirects, internal links, and content optimization. It also includes features for monitoring search rankings, auditing website SEO, and generating content with AI.
CVE-2026-100152: Unauthenticated Arbitrary Shortcode Execution
The first vulnerability is rated 6.5 (Medium) and affects all versions of AIOSEO up to and including 5.0.2. It allows unauthenticated attackers to execute arbitrary WordPress shortcodes when certain conditions are met.
The main concern is that attackers do not need an account or any user privileges to exploit it, which makes it easier to abuse than a vulnerability that first requires valid credentials.
The flaw comes from a missing validation check before the plugin runs the WordPress do_shortcode function.
Shortcodes are instructions that tell WordPress to perform specific functions, such as displaying content or running a feature. The do_shortcode function processes those instructions.
The weakness is that the plugin does not properly check a value before executing a shortcode, which makes it possible for an attacker to force the site to run arbitrary shortcodes.
According to Wordfence:
“This is due to the software allowing users to execute an action that does not properly validate a value before running do_shortcode. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes.
This requires the AIOSEO breadcrumb to be rendered on the search results page via the block, widget, shortcode, or template tag.”
That last point is an important limitation, because the vulnerability only applies when AIOSEO breadcrumbs appear on a WordPress search results page.
Breadcrumbs are the navigation links that show visitors where a page sits within a website’s structure. The flaw can be exploited when those breadcrumbs are displayed on search results pages using one of the methods Wordfence identified.
So while attackers do not need to log in, whether the vulnerability can be triggered depends on how the site uses the plugin’s breadcrumb feature.
CVE-2026-85492: Unauthenticated XSS Vulnerability
The second vulnerability is rated 6.1 (Medium) and is a DOM-based Cross-Site Scripting (XSS) flaw affecting all versions up to and including 5.0.1.1.
This one also involves unauthenticated attackers, but exploitation requires an authorized WordPress user to take specific actions.
The weakness is caused by insufficient input sanitization and output escaping when handling a URL pathname.
Input sanitization and output escaping are security measures that prevent untrusted data from being treated as executable code. In this case, the missing protections let attackers insert malicious scripts into a specially crafted URL.
On input sanitization, the official WordPress Developer handbook on security explains:
“Sanitizing input is the process of securing/cleaning/filtering input data. Validation is preferred over sanitization because validation is more specific. But when “more specific” isn’t possible, sanitization is the next best thing.”
And WordPress says this about escaping output:
“Escaping output is the process of securing output data by stripping out unwanted data, like malformed HTML or script tags. This process helps secure your data prior to rendering it for the end user.”
Wordfence explains:
“This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user visits a crafted URL. Exploitation requires the victim to hold the aioseo_manage_seo capability and to open the SEO Preview panel in the WordPress admin toolbar while visiting a page with a malicious payload embedded in the URL pathname.”
What makes this vulnerability harder to exploit is that simply visiting the malicious URL is not enough.
The targeted user must have the aioseo_manage_seo capability, a WordPress permission tied to managing SEO features. That user must also open the plugin’s SEO Preview panel from the WordPress admin toolbar while visiting the malicious URL.
Because DOM-based XSS runs the malicious script in the user’s browser, the vulnerability depends on the actions of a user with the required SEO permission rather than letting an attacker execute the script simply by loading the site.
Both Vulnerabilities Have Been Patched
Both vulnerabilities have been fixed in separate releases of the All in One SEO plugin.
CVE-2026-85492
Version 5.0.2 addresses the cross-site scripting vulnerability. The plugin’s changelog describes the security improvements:
“Fixed: Improved security and access protections in SEO Revisions, SEO Analysis and the SEO Preview.”
CVE-2026-100152
Version 5.0.2.1 fixes the arbitrary shortcode execution vulnerability.
The changelog describes the update:
“Fixed: Improved security protections for shortcodes on search pages.”
Users of the All in One SEO WordPress plugin should update to version 5.0.2.1 or a newer patched release to protect against both vulnerabilities.
Featured Image by Shutterstock/Andrei Korzhyts

