Description
The Popup Box plugin for WordPress is vulnerable to Arbitrary Shortcode Execution in versions 6.4.1 to 6.4.2. This is due to the ays_popup_get_user_ip() function reading the client-controlled Client-IP / X-Forwarded-For / Forwarded / X-Forwarded / Forwarded-For request headers, sanitizing them only with sanitize_text_field() (which does not strip the bracket, quote, space, or '=' characters used by shortcode syntax), substituting the value into a popup body wherever the %%user_ip_address%% token appears (a raw str_replace with no escaping in Ays_Pb_Data::replace_message_variables()), and then passing the resulting body to do_shortcode() in Ays_Pb_Public::ays_autoembed() at output on the wp_footer hook. This makes it possible for unauthenticated attackers to execute arbitrary registered shortcodes with attacker-supplied attributes on the server whenever an administrator has added the %%user_ip_address%% token to a popup's Custom Content body, which can be leveraged to read arbitrary data or perform other actions exposed by shortcodes installed on the site.
Published: 2026-10-16
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary Shortcode Execution
Action: Patch
AI Analysis

Impact

The Popup Box plugin for WordPress is vulnerable to arbitrary shortcode execution in versions 6.4.1 to 6.4.2. The ays_popup_get_user_ip() function reads client‑controlled headers such as Client‑IP, X‑Forwarded‑For, Forwarded, X‑Forwarded, Fronted‑For, sanitizes them only with sanitize_text_field(), and substitutes the value into the %%user_ip_address%% token in popup content via raw str_replace. The resulting content is then passed to do_shortcode() unescaped during footer output. This allows an unauthenticated attacker to embed arbitrary shortcodes with custom attributes into the request headers, which are executed on the server, enabling the attacker to read sensitive data or trigger plugin‑provided actions. The weakness is identified as CWE‑94.

Affected Systems

WordPress sites that have the ays‑pro Popup Box plugin installed in versions 6.4.1 through 6.4.2. The vulnerability is triggered when an administrator places the %%user_ip_address%% token in a popup’s Custom Content body.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate damage potential. No EPSS value is available, and the issue is not listed in the CISA KEV catalog. The vulnerability can be exploited by any external user who can send HTTP requests to the site, as the attacker can set the Client‑IP/X‑Forwarded‑For headers to include malicious shortcode syntax. Exploitation does not require authentication or additional privileges. Given the code paths exposed, the risk is significant for sites that rely on shortcodes for sensitive operations but is lower than true arbitrary code execution. The attack vector is through crafted HTTP requests directed at the site’s front‑end.

Generated by OpenCVE AI on October 16, 2026 at 13:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Popup Box plugin to version 6.4.3 or later, which removes the vulnerable token replacement logic.
  • Remove any occurrences of the %%user_ip_address%% token from popup custom content to eliminate the substitution pathway.
  • Disable or restrict client‑supplied IP headers (Client‑IP, X‑Forwarded‑For, etc.) on the web server to reduce the attacker’s ability to inject malicious shortcode syntax.

Generated by OpenCVE AI on October 16, 2026 at 13:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 16 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 16 Oct 2026 02:45:00 +0000

Type Values Removed Values Added
Description The Popup Box plugin for WordPress is vulnerable to Arbitrary Shortcode Execution in versions 6.4.1 to 6.4.2. This is due to the ays_popup_get_user_ip() function reading the client-controlled Client-IP / X-Forwarded-For / Forwarded / X-Forwarded / Forwarded-For request headers, sanitizing them only with sanitize_text_field() (which does not strip the bracket, quote, space, or '=' characters used by shortcode syntax), substituting the value into a popup body wherever the %%user_ip_address%% token appears (a raw str_replace with no escaping in Ays_Pb_Data::replace_message_variables()), and then passing the resulting body to do_shortcode() in Ays_Pb_Public::ays_autoembed() at output on the wp_footer hook. This makes it possible for unauthenticated attackers to execute arbitrary registered shortcodes with attacker-supplied attributes on the server whenever an administrator has added the %%user_ip_address%% token to a popup's Custom Content body, which can be leveraged to read arbitrary data or perform other actions exposed by shortcodes installed on the site.
Title Popup Box 6.4.1 - 6.4.2 - Unauthenticated Arbitrary Shortcode Execution via Client-IP / X-Forwarded-For HTTP Headers
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-10-16T15:09:41.509Z

Reserved: 2026-09-25T12:19:23.903Z

Link: CVE-2026-100159

cve-icon Vulnrichment

Updated: 2026-10-16T15:00:40.216Z

cve-icon NVD

Status : Deferred

Published: 2026-10-16T03:17:58.000

Modified: 2026-10-16T15:16:58.060

Link: CVE-2026-100159

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-16T13:52:54Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')