IPS Signature Sep 22, 2026

GajIPS - IPS Signature Update — GS EXPLOIT: WordPress Comment2Shell CVE-2026-93485 unauthenticated stored XSS injection

Severity: HIGH · Priority: P2 — unauthenticated stored XSS enabling admin-session RCE, investigate on hit

This rule detects an attempt to exploit Comment2Shell, a vulnerability in WordPress Core fixed in version 7.1.1 on September 17, 2026. The flaw lets an anonymous visitor post a comment that carries no visible script, yet when a logged-in administrator later views the page, the comment executes code in that administrator's browser — and through the administrator's own session, can then install malicious plugins or execute code on the server. No attacker account is needed; the payload goes through the ordinary public comment form.

The trick is a line break placed inside the attribute of one of the HTML tags WordPress permits in comments. WordPress's comment sanitiser has no reason to remove line breaks, so the payload passes through unchanged. A separate WordPress formatter, which turns line breaks into paragraphs, later rearranges the tag structure in a way that moves the attacker's text into a position the browser treats as a live event handler. The handler is set to fire automatically as the page loads, without any click required. This rule watches for that specific pattern — an allowed tag whose attribute contains a newline followed by an event handler assignment — arriving through the comment submission path.

A hit indicates someone is actively trying to plant a malicious comment on one of your WordPress sites. Confirm whether the targeted site is running WordPress 7.1.1 or later; if not, treat the site as potentially already holding a malicious stored payload — check recent comments for unusual content, and update immediately. Because the comment is stored and fires against whoever views it next, a successful plant means the next administrator to open the site could unknowingly trigger code execution. Updating WordPress Core to 7.1.1 or later removes the flaw; in the interim, requiring comment moderation before comments are published prevents stored payloads from reaching administrators, though it is not a substitute for patching.

See the latest threat intelligence