CVE Catalog

CVE-2026-100159

MediumCVSS 4.8
Published: Translated: NVD NIST

Summary

The Popup Box plugin for WordPress versions 6.4.1 to 6.4.2 is vulnerable to Arbitrary Shortcode Execution. The ays_popup_get_user_ip() function reads client-controlled headers, sanitizes them only with sanitize_text_field(), substitutes the value into popup body where %%user_ip_address%% token appears, and passes the result to do_shortcode(), allowing unauthenticated attackers to execute arbitrary registered shortcodes.

Risk Assessment

An unauthenticated attacker can execute arbitrary shortcodes with attributes, potentially leading to data reading or other actions. This requires an administrator to have added the %%user_ip_address%% token to a popup's Custom Content body.

Recommendation

Update the Popup Box plugin to a version later than 6.4.2. Remove the %%user_ip_address%% token from popup bodies until patched.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS