Ad Inserter <= 2.8.18 — Reflected Cross-Site Scripting via {search-query} Dynamic Tag (Referer Header)
CVE-2026-19902Published · Updated Action summary
Affected: ≤2.8.18Update to 2.8.19 or newer
All remediation steps- Severity
- Medium6.1
- CVSS
- 6.1CVSS 3.1 · CNA (Wordfence)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NWhat does this vector mean?
AV:NAttack vector- Network
AC:LAttack complexity- Low
PR:NPrivileges required- None
UI:RUser interaction- Required
S:CScope- Changed
C:LConfidentiality- Low
I:LIntegrity- Low
A:NAvailability- None
- Weakness
- CWE-79 Cross-Site Scripting
- Required access
- No account needed
- Exploit prediction (EPSS)
- 0.3% chance in 30 days17th percentile
- CISA KEV
- Not listed
On this page8
Am I affected?
Ad Inserter – Ad Manager & AdSense Ads ad-inserter
- Affected≤ 2.8.18
- Patched in2.8.19
Update to 2.8.19 or newer.
You are affected if you run ≤ 2.8.18. Version 2.8.19 and later are not affected by this issue.
- Check your version: in wp-admin go to Plugins → Installed Plugins and read the version under Ad Inserter – Ad Manager & AdSense Ads.
- No admin access? Run a passive check of your site. It reads public files only.
- No account is needed to exploit this. Treat any exposed site on an affected version as at risk.
What to do
- Update to version 2.8.19, or a newer patched version
- Rotate administrator passwords and application secrets if the site ran a vulnerable version while publicly reachable.
- Watch Ad Inserter – Ad Manager & AdSense Ads to get an email when the next vulnerability is published.
Advisory
Source description from Wordfence Intelligence, credited to Yuto Hyakumoto.
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.
Exploits & references
Proof-of-concept & detection
No public proof-of-concept or detection template is known for this vulnerability.
Advisories & patches
- Advisorywordfence.com
Related CVEs
More in Ad Inserter – Ad Manager & AdSense Ads
All 29| Severity | Vulnerability | CVE | Published |
|---|---|---|---|
| Medium6.5 | Unauthenticated Arbitrary Shortcode Execution via 's' Search Parameter ≤2.8.19Update to 2.8.20 | CVE-2026-102905 | |
| High7.2 | Unauthenticated Stored Cross-Site Scripting ≤2.8.19Update to 2.8.20 | CVE-2026-105077 | |
| Medium6.4 | Authenticated (Contributor+) Stored Cross-Site Scripting ≤2.8.18Update to 2.8.19 | CVE-2026-118094 | |
| Medium6.1 | Reflected Cross-Site Scripting ≤2.8.18Update to 2.8.19 | CVE-2026-114709 | |
| Medium6.1 | Reflected Cross-Site Scripting ≤2.8.18Update to 2.8.19 | CVE-2026-114194 |
- Medium6.5Unauthenticated Arbitrary Shortcode Execution via 's' Search Parameter
≤2.8.19Update to 2.8.20
- High7.2Unauthenticated Stored Cross-Site Scripting
≤2.8.19Update to 2.8.20
- Medium6.4Authenticated (Contributor+) Stored Cross-Site Scripting
≤2.8.18Update to 2.8.19
- Medium6.1Reflected Cross-Site Scripting
≤2.8.18Update to 2.8.19
- Medium6.1Reflected Cross-Site Scripting
≤2.8.18Update to 2.8.19
Same weakness (Cross-Site Scripting)
All Cross-Site Scripting| Severity | Vulnerability | CVE | Published |
|---|---|---|---|
| High7.2 | Unauthenticated Stored Cross-Site Scripting via Comment User-Agent Header | CVE-2026-120688 | |
| Critical9.8 | Unauthenticated Arbitrary File Upload via File Upload via Public Form Submission | CVE-2026-125055 | |
| Critical9.8 | Unauthenticated PHP Object Injection to Remote Code Execution via 'form' Parameter | CVE-2026-119077 | |
| Medium5.3 | Unauthenticated Sensitive Information Exposure in 'search' Parameter | CVE-2026-121518 |
- High7.2Unauthenticated Stored Cross-Site Scripting via Comment User-Agent Header
EZ SQL Reports Shortcode Widget and DB Backup
≤5.25.25Update to 5.26.45
- Critical9.8Unauthenticated Arbitrary File Upload via File Upload via Public Form Submission
Chatterbug Forms – Fast, Flexible WordPress Form Builder
≤1.0.2Update to 1.1
- Critical9.8Unauthenticated PHP Object Injection to Remote Code Execution via 'form' Parameter
ELEX WordPress HelpDesk & Customer Ticketing System
≤3.3.9Update to 3.4.0
- Medium5.3Unauthenticated Sensitive Information Exposure in 'search' Parameter
Customer Reviews for WooCommerce
≤5.127.0Update to 5.128.0
Timeline
CVE published
Severity medium, CVSS 6.1
Record last updated
Sources & licenses
Wordfence record- Vulnerability data
- Wordfence Intelligence. Copyright 2012-2026 Defiant Inc. Licensed under the CC BY-SA 4.0.
- CVE® identifiers
- Copyright 1999-2026 The MITRE Corporation. Used under the CVE Program. CVE® is a registered trademark of The MITRE Corporation.
- CVSS / CWE
- National Vulnerability Database (NVD), shown unmodified. This product uses the NVD API but is not endorsed or certified by the NVD.
- EPSS
- Exploit Prediction Scoring System by FIRST.org.
- VulnCrest content
- Summary, remediation guidance and page layout © VulnCrest. Not sourced from NVD.
