CVE-2026-120034: Ad Inserter <= 2.8.20 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Global Custom Fields Image Field
The Ad Inserter – Ad Manager & AdSense Ads plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'ai-global-field-<N>' parameter in all versions up to, and including, 2.8.20 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires that a site administrator has enabled a Global Custom Fields page, lowered its Access setting to the attacker's role, and configured at least one field of type Image bound to that page.
Affected Software
Event History
Frequently Asked Questions
Which sites are exposed to this issue?
A site is exposed only if an administrator has enabled a Global Custom Fields page, set its Access setting to allow the attacker's role, and configured at least one Image-type field bound to that page. The affected plugin versions are 2.8.20 and earlier.
What level of access does an attacker need?
An attacker must be authenticated to WordPress with subscriber-level access or higher. They also need access to the relevant Global Custom Fields page under its configured Access setting.
Is the default plugin configuration affected?
The issue requires specific administrator configuration of Global Custom Fields and an Image field, so exploitation depends on those settings being enabled and accessible to the attacker. The provided information does not establish that this configuration is enabled by default.
What happens if exploitation succeeds?
An attacker can store arbitrary web script through the ai-global-field-<N> parameter. The script executes when a user accesses the page containing the injected content.