CVE-2026-19902
Last modified
CVE-2026-19902 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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 due to insufficient input sanitization and output escaping on the '{search-query}' dynamic tag. When an ad block's code contains that tag, replace_ai_tags() reads $_SERVER['HTTP_REFERER'] and tests it with the regex /[\.\/](google|yahoo|bing|ask)\.[a-z\.]{2,5}[\/]/i. EPSS estimates a 0.26% chance of exploitation in the next 30 days.
Description
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 due to insufficient input sanitization and output escaping on the '{search-query}' dynamic tag. When an ad block's code contains that tag, replace_ai_tags() reads $_SERVER['HTTP_REFERER'] and tests it with the regex /[\.\/](google|yahoo|bing|ask)\.[a-z\.]{2,5}[\/]/i. The leading [\.\/] class matches a literal slash, so any referrer merely containing a segment such as '/google.com/' passes as a search-engine referral; the plugin then percent-decodes the referring query with parse_str() and substitutes the resulting 'q' (or 'p') value into the block via preg_replace() with no escaping. This makes it possible for unauthenticated attackers to execute arbitrary JavaScript in the context of the site for any visitor, including a signed-in administrator, by luring them to an attacker-controlled page that frames or links to any ordinary post. Exploitation requires the site to have an ad block whose code uses the '{search-query}' tag with automatic insertion enabled — a documented plugin feature used as intended.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| spacetime | Ad Inserter – Ad Manager & AdSense Ads | <= 2.8.18 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-19902?
How severe is CVE-2026-19902?
How do I fix CVE-2026-19902?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-19897A vulnerability has been found in mangroup dtale up to 3.22.…3.7
- CVE-2026-19898A vulnerability was found in VictoriaMetrics up to 1.146.0. …3.7
- CVE-2026-19899A vulnerability was determined in SourceCodester Class and E…7.3
- CVE-2026-1990A security vulnerability has been detected in oatpp up to 1.…3.3
- CVE-2026-19900A vulnerability was identified in LB-LINK X-PRO 1.0.22-20231…8.1
- CVE-2026-19901A security flaw has been discovered in LB-LINK X-PRO 1.0.22-…8.1
- CVE-2026-19903A vulnerability has been found in SourceCodester Online Clot…5.3
- CVE-2026-19904A vulnerability was found in SourceCodester Online Book Stor…2.4
- CVE-2026-19905A weakness has been identified in Jinher OA 1.0. Impacted is…7.3
- CVE-2026-19906A weakness has been identified in pkp pkp-lib 3.3.0/3.4.0/3.…3.7
- CVE-2026-19908PAX Technology Q80 XCB Daemon Missing Authentication Vulnera…7.1
- CVE-2026-19909PAX Technology Q80 AIP File Parsing Link Following Remote Co…7.5
Are you affected by CVE-2026-19902?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
