CVE-2026-120080: Ad Inserter <= 2.8.20 - Unauthenticated Stored Cross-Site Scripting via Output-Buffering Marker Injection via Guest Comment
The Ad Inserter – Ad Manager & AdSense Ads plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 2.8.20 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires that the site has the plugin's Output Buffering option enabled and at least one block configured for Inside-HTML-element, Replace-element, or Server-side insertion mode with ad code that contains no double-quote character; once an initially moderation-held comment is approved, the payload executes for every subsequent visitor with no further interaction.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Disable the plugin’s Output Buffering option to prevent exploitation that requires it to be enabled.
Ad Inserter – Ad Manager & AdSense Ads Output Buffering = disabled
Event History
Frequently Asked Questions
What conditions must be present for exploitation to work?
The site must have Ad Inserter's Output Buffering option enabled and at least one block configured for Inside-HTML-element, Replace-element, or Server-side insertion mode. The affected block's ad code must also contain no double-quote character.
Does an attacker need an account or user interaction?
No account is required; an unauthenticated attacker can submit the malicious content through the comment parameter. The comment is initially held for moderation, so exploitation depends on it being approved, after which the stored payload runs for subsequent visitors without further interaction.
Who is exposed after a malicious comment is approved?
Every visitor who accesses the injected page can execute the attacker-supplied script in their browser. The vulnerability can affect confidentiality and integrity, as reflected by the stated C:L and I:L impacts.
How can I determine whether my site is affected?
Check whether the installed Ad Inserter version is 2.8.20 or earlier. Then verify whether Output Buffering is enabled and whether any configured block uses Inside-HTML-element, Replace-element, or Server-side insertion with ad code containing no double-quote character.