December 1, 2026

Aikido Deep Review caught an XSS in WordPress only 10 minutes after it was committed

A CVE you'll never have to worry about.

TL;DR: Aikido's Deep Review flagged a stored cross-site scripting (XSS) path ten minutes after the vulnerable WordPress commit was pushed.

  • If you run WordPress, you do not need to do anything. We caught and stopped this vulnerability from reaching a stable version. It’s a CVE you’ll never have to worry about.
  • In this short-lived vulnerability, an author could hide JavaScript in an image. The payload would execute when an Administrator selected that image in the Classic editor.
  • We found this with Aikido Deep Review, which runs whenever a pull request is opened or updated in an enabled repository. It reads the change in the context of the rest of the codebase and reports security problems before the code is merged.
  • We reproduced and reported it 88 minutes after the commit. WordPress reverted the change before it reached a stable release. The bug only affected WordPress development build 7.2-alpha-64254.

At 13:14 CEST on October 9, 2026, a commit was pushed to the WordPress development branch. One of our research agents that scans open source projects picked it up immediately. Ten minutes after the commit, it returned with a possible XSS. We informed WordPress immediately and prevented this from going to production.

We found this vulnerability with Aikido Deep Review, which we run on many open source projects as part of our community research. Our goal is to spot vulnerabilities in major frameworks before they can become exploitable.

Catching the issue before merge

The best place to catch security issues is before the PR gets merged, while the developer still has the change in front of them. Aikido Deep Review runs against PRs to find vulnerabilities introduced in new code.

For this WordPress change, Deep Review followed the setting into class-wp-editor.php, found how WordPress builds the element name in ResolveName, and continued into TinyMCE's innerHTML call. This exposed the full path from an author-controlled attribute to HTML rendered in an Administrator's browser.

Deep Review posted a high-severity finding on the changed line and suggested restoring elementpath = false. A developer could inspect the reasoning and apply the proposed fix without leaving the pull request.

Technical details: finding the WordPress vulnerability

We started monitoring WordPress’s commits in late August as part of our work to secure major open source projects. In October, we saw and began to review the commit 7fdd5eb the second it became public. But the code change in this commit is tiny. At first sight you'd probably barely even look at this commit because it changes practically nothing, right?

Your quick glance would be understandable, because the diff alone doesn't show the vulnerability! This is where our Deep Review comes in. Instead of just looking at the changes, it pulls in the surrounding code and follows the change into other files. In this case, it’s where the security impact became visible.

So how did this single line change lead to a stored XSS? Well, look at this line.

-$settings['elementpath'] = false;

WordPress uses TinyMCE as the rich-text editor inside a Classic block. It provides the formatting toolbar, the editable content area, and a status bar along the bottom. One part of that status bar is the element path, which shows the selected HTML element and its parents. Selecting an image might produce body > p > img.

WordPress had set elementpath = false, so this part of the status bar stayed hidden. The commit removed that setting and TinyMCE started rendering the path again. However, deep down into WordPress code, it replaced the usual img label with a value read from the image's data-wp-more attribute. TinyMCE inserted that label with innerHTML, which allowed an author-controlled attribute to become HTML in the Administrator's browser.

This means that an author can create a malicious post containing the following payload. If an administrator now edits the post and clicks on the image, then the data-wp-more attribute will be placed in the DOM using innerHTML, which causes the XSS payload to trigger.

<p><img src="/wp-includes/images/w-logo-blue-white-bg.png" width="100" data-wp-more="&lt;img src=x onerror=alert(document.domain)&gt;"></p>

Our agent's first proposed proof of concept did not execute because WordPress filters post content before it reaches TinyMCE. We manually launched additional analysis agents to look for a path through that filter and reproduced the vulnerability locally at 14:07, just 53 minutes after the initial commit.

We then wrote the report at 14:32 and sent it to the WordPress security team ten minutes later. From commit to disclosure, 88 minutes had elapsed.

Who is affected?

If you run an official WordPress release, you are not affected and do not need to take action. Our agents caught the bug while it was still limited to the development branch, and we reported it in just over an hour after the vulnerability was committed. The WordPress security team moved quickly, triaged the report, and reverted the change before it could reach a release. Their fast response meant that most WordPress users were never affected.

The only vulnerable version was development build 7.2-alpha-64254, at commit 7fdd5ebe4bbcf9e92d7f85ae662efabc936f4235.

Deep Review

Once enabled for a repository, Deep Review automatically reviews each new or updated pull request. It reads the changed lines with relevant code from the rest of the repository and follows the downstream effects across the entire repo. You can also link separate repositories, so you can see if a change in one repo has security implications in the other.

Deep Review finishes 96% of reviews in under five minutes, includes a suggested fix in 42% of its comments, and developers fix over half of the issues it raises. Devs get actionable changes.

Teams can connect a repository, enable Deep Review for the projects that need it, and run it alongside their existing checks. Findings appear in the pull request, where developers can act on them before the code reaches the main branch or a release.

Coordinated disclosure

We sent the report through WordPress's HackerOne program. Their team triaged it quickly and reverted the change pending further work.

Timeline

  • October 9, 2026: WordPress committed the affected change at 13:14 CEST.
  • October 9, 2026: Aikido's research scanner flagged the issue at 13:24.
  • October 9, 2026: I reproduced the issue locally at 14:07.
  • October 9, 2026: I completed the report at 14:32.
  • October 9, 2026: We privately disclosed the issue to WordPress at 14:42.
  • October 9, 2026: WordPress acknowledged and triaged the report.
  • October 10, 2026: WordPress reverted the change pending further work.
  • October 12, 2026: We requested disclosure.
  • October 12, 2026: WordPress asked us to delay disclosure while the team investigated whether similar paths existed elsewhere.
  • November 11, 2026: Report was disclosed publicly by the WordPress team.

The vulnerable behavior crossed WordPress's content filter, its TinyMCE plugin, and TinyMCE's HTML renderer. Aikido Deep Review followed that path and reported the issue on the change that enabled it.

Last updated: December 1, 2026
4.7/5
Tired of false positives?

Try Aikido like 100k others.
Start Now
Get a personalized walkthrough

Trusted by 100k+ teams

Book Now
Scan your app for IDORs and real attack paths

Trusted by 100k+ teams

Start Scanning
See how AI pentests your app

Trusted by 100k+ teams

Start Testing
Authors
Robbe Van Roey
Security Researcher
Scan for malware
Secure your code, cloud, and runtime in one central system. Find and fix vulnerabilities fast automatically.
Start for free
Share:

Recently Added

November 24, 2026

Attackers use Hugging Face’s AI to make phishing pages

We found 42 phishing pages on Hugging Face Spaces, many built by prompting HuggingFace's own AI website builder. All of them are offline now.
November 19, 2026

Ruby2Shell: critical Ruby RCE, affected versions and how to fix it (CVE-2026-132825)

Ruby2Shell is a critical Ruby flaw that can let an unauthenticated attacker run code on your server, and GitLab is among the affected software. Here is who is exposed, which versions fix it, and what to do until your vendor ships a patch.
November 18, 2026

PHP critical security release, 19 November (CVE-2026-129289, CVE-2026-115560)

PHP’s 19 November release fixes 18 CVEs, including CVE-2026-115560. Aikido Images for PHP already include the fixes.