Security Alert Summary
The Ad Inserter – Ad Manager & AdSense Ads plugin for WordPress contains a stored cross-site scripting (XSS) vulnerability via the comment parameter in versions up to and including 2.8.20. An unauthenticated attacker can submit a payload that, when an initially moderation-held comment is approved and the site has specific plugin options enabled, will execute script for subsequent visitors without further interaction.
CVE Details
- CVE ID:
CVE-2026-120080 - Affected component: Ad Inserter – Ad Manager & AdSense Ads plugin for WordPress
- Affected versions: All versions up to and including 2.8.20
- Published: December 2, 2026 at 10:17:12 AM
- Last modified: December 2, 2026 at 2:17:10 PM
- CVSS v3.1: Base score 5.4 (MEDIUM) —
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N - Authentication / privileges / user interaction: No authentication required (PR:N); no user interaction required (UI:N); attack complexity is high (AC:H)
- Primary impact: Confidentiality: Low; Integrity: Low; Availability: None
- Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)
Technical Details
The plugin fails to sufficiently sanitize and escape input supplied via the comment parameter, allowing stored cross-site scripting (XSS) payloads to be saved and later rendered in page output. Exploitation requires the plugin’s Output Buffering option to be enabled and at least one ad block configured in Inside-HTML-element, Replace-element, or Server-side insertion mode where the ad code contains no double-quote character. When a comment containing a payload is initially held for moderation and later approved, the stored payload is rendered and executes for every subsequent visitor to the injected page without additional interaction.
This behavior arises from missing or insufficient input sanitization and output escaping for that parameter in the affected plugin code paths. The CVE description identifies the comment parameter and specific insertion modes as the conditions required for execution; no additional endpoints or function names are specified in the provided data.
How This Could Impact Your Website
On a multi-user WordPress site, an external contributor or commenter could submit malicious content via the site comment workflow. If a site administrator or editor approves the comment and the plugin is configured as described, that comment can cause scripts to run for every subsequent visitor. Practical consequences include limited disclosure of information exposed to the rendered page and alteration of page content seen by visitors.
Examples of realistic impacts: internal user email addresses displayed on affected pages could be exposed to attackers, and attackers could use visible page content to craft targeted phishing or social engineering messages aimed at staff or contractors. The vulnerability does not, based on the provided data, indicate direct loss of site availability.
If youre unsure whether your site is affected or how to assess your current user roles and plugins, it may be worth having a professional review of your setup.
Recommended Actions
- Update the affected plugin as soon as a patched version is available.
- Review and reduce unnecessary user roles, especially contributors and other roles that can submit content subject to moderation.
- Enforce strong passwords and enable two-factor authentication for editor and administrator accounts.
- Disable or remove unused or unmaintained plugins and themes.
- Monitor site activity and comment moderation logs for unusual behavior or unexpected approvals.
If youd like help reviewing your plugins, user roles, or overall WordPress security posture, our team at Freshy is happy to help.
References
- https://plugins.trac.wordpress.org/browser/ad-inserter/
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/ad-inserter.php#L1013
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/ad-inserter.php#L1035
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/ad-inserter.php#L1044
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/ad-inserter.php#L1058
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/ad-inserter.php#L1106
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/ad-inserter.php#L1111
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/ad-inserter.php#L1129
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/ad-inserter.php#L1147
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/constants.php#L1076
- https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.20/constants.php#L1077
- https://plugins.trac.wordpress.org/changeset/3831070/ad-inserter/trunk/ad-inserter.php
- https://www.wordfence.com/threat-intel/vulnerabilities/id/03ac4da2-868a-49d4-9a0a-7c2a82ffab5c?source=cve