PatchSiren cyber security CVE debrief
CVE-2026-19902 spacetime CVE debrief
The Ad Inserter – Ad Manager & AdSense Ads plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the Referer header in all versions up to, and including, 2.8.18. This vulnerability allows unauthenticated attackers to execute arbitrary JavaScript in the context of the site for any visitor by luring them to an attacker-controlled page that frames or links to any ordinary post.
- Vendor
- spacetime
- Product
- Ad Inserter – Ad Manager & AdSense Ads
- CVSS
- MEDIUM 6.1
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-01
- Original CVE updated
- 2026-10-03
- Advisory published
- 2026-10-01
- Advisory updated
- 2026-10-03
Who should care
Defenders responsible for WordPress sites using the Ad Inserter plugin should assess exposure and prioritize verification and remediation. This includes reviewing plugin versions, checking for ad blocks using the '{search-query}' tag, and implementing compensating controls. Security teams should track exceptions, retest remediated assets, and ensure evidence is documented.
Why it matters
The CVE-2026-19902 vulnerability in the Ad Inserter plugin allows unauthenticated attackers to execute arbitrary JavaScript, requiring defenders to assess exposure and prioritize remediation.
- Unauthenticated attackers can execute arbitrary JavaScript in the context of the site
- Attackers can lure visitors to an attacker-controlled page to exploit the vulnerability
- The vulnerability requires the site to have an ad block using the '{search-query}' tag with automatic insertion enabled
- Verification of plugin versions and exposure is necessary
Technical summary
The Ad Inserter plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the Referer header. The plugin insufficiently sanitizes and escapes input on the '{search-query}' dynamic tag, allowing unauthenticated attackers to execute arbitrary JavaScript. This vulnerability requires the site to have an ad block using the '{search-query}' tag with automatic insertion enabled. Defenders should prioritize verifying and updating the Ad Inserter plugin to a fixed version, assessing exposure, and implementing compensating controls.
Defensive priority
Defenders should prioritize verifying and updating the Ad Inserter plugin to a fixed version, assessing exposure, and implementing compensating controls.
Recommended defensive actions
- Verify and update the Ad Inserter plugin to a fixed version
- Assess exposure by checking if the site has an ad block using the '{search-query}' tag with automatic insertion enabled
- Implement compensating controls such as input validation and output escaping
- Monitor for suspicious activity and implement incident response plans
- Review relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
Evidence notes
The vulnerability exists due to insufficient input sanitization and output escaping on the '{search-query}' dynamic tag in the Ad Inserter plugin. The plugin reads the Referer header and tests it with a regex, then substitutes the resulting query value into the ad block without escaping.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-19902 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-19902
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-19902 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-19902
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.18/ad-inserter.php
-
Source reference
Unverified legacy reference
URL: https://plugins.trac.wordpress.org/browser/ad-inserter/tags/2.8.18/class.php
-
Source reference
Unverified legacy reference
URL: https://plugins.trac.wordpress.org/changeset/3709957/ad-inserter/trunk/ad-inserter.php
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.