CVE-2026-104904 in Shortcodes Ultimate Plugininfo

Summary

by MITRE • 11/21/2026

The Shortcodes Ultimate plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 7.9.1 This is due to su_get_current_url() interpolating the raw Host request header into the authority portion of a URL that is then passed to esc_url() — which by design preserves '[' and ']' inside the authority so IPv6 literal hosts remain valid — and the [su_qrcode] shortcode substituting that value into its data attribute (the documented %CURRENT_URL% token) before feeding it to do_shortcode(). This makes it possible for unauthenticated attackers to include arbitrary PHP files that reside within the active theme's root directory (bounded because '/' inside an attribute value terminates parse_url()'s host and is then percent-encoded and stripped), and — when the shipped-default 'Unsafe features' option remains on — to read arbitrary post meta of any post, on any front-end page that renders [su_qrcode data="%CURRENT_URL%"].

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/21/2026

The Shortcodes Ultimate plugin for WordPress contains a critical Local File Inclusion vulnerability in versions up to and including 7.9.1, stemming from improper input validation within the su_get_current_url function. This function is responsible for constructing the current page URL by interpolating the raw Host request header directly into the authority portion of a generated URL string. The resulting string is then passed through WordPress's esc_url sanitization function. While esc_url is designed to preserve square brackets and parentheses in the host component to support valid IPv6 literal addresses, this behavior inadvertently allows maliciously crafted input containing specific characters to bypass standard filtering mechanisms when used in subsequent contexts that do not apply equivalent strict validation.

The core technical flaw manifests through the [su_qrcode] shortcode, which utilizes a documented token %CURRENT_URL% intended for dynamic content generation. When an attacker supplies a specially constructed Host header, the interpolated URL value is substituted into the data attribute of the shortcode output. This unescaped or insufficiently sanitized value is subsequently processed by do_shortcode(), leading to unintended side effects depending on how the resulting HTML structure interacts with WordPress's internal parsing logic. The vulnerability allows for Local File Inclusion because the input manipulation can influence file path resolution within the active theme directory, provided that forward slashes are handled in a way that terminates parse_url host detection and triggers percent-encoding stripping sequences that expose underlying filesystem paths.

From an operational impact perspective, this vulnerability enables unauthenticated remote attackers to include arbitrary PHP files located within the root directory of the currently active WordPress theme. The scope of file inclusion is constrained by parsing rules where forward slashes inside attribute values terminate the host segment detection in parse_url(), leading to percent-encoding and stripping that exposes adjacent filesystem components. Furthermore, if the plugin's Unsafe features option remains enabled by default or has been left unmodified during installation, the attack surface expands significantly. In this configuration, attackers can read arbitrary post meta data from any post on any front-end page where the vulnerable shortcode is rendered with the %CURRENT_URL% token. This capability allows for sensitive information disclosure beyond simple code execution, potentially exposing database content and user-specific metadata without authentication.

This vulnerability aligns with CWE-94 Improper Control of Generation of Code (Code Injection) and CWE-200 Exposure of Sensitive Information to an Unauthorized Actor under the Common Weakness Enumeration framework. In terms of adversary tactics, it maps to ATT&CK technique T1505.003 Server Side Request Forgery via Web Shell or similar server-side code injection patterns where input is used to manipulate internal application logic for unauthorized access. The lack of authentication required for exploitation makes this a high-severity issue that demands immediate attention from site administrators and developers maintaining WordPress environments using affected plugin versions.

Mitigation strategies should prioritize upgrading the Shortcodes Ultimate plugin to version 7.9.2 or later, where these input validation flaws have been addressed through stricter sanitization of Host headers and proper escaping in shortcode attribute rendering. Administrators who cannot immediately upgrade should disable the Unsafe features option within the plugin settings if accessible via the dashboard, although this may not fully mitigate file inclusion risks depending on specific server configurations. Additionally, implementing Web Application Firewall rules that detect anomalous patterns in HTTP Host headers containing encoded slashes or unusual bracket usage can provide a layer of defense against exploitation attempts while patching is underway. Regular auditing of installed plugins and adherence to principle of least privilege for plugin capabilities further reduces the risk profile associated with such vulnerabilities.

Responsible

Wordfence

Reservation

10/02/2026

Disclosure

11/21/2026

Moderation

accepted

CPE

ready

EPSS

0.00584

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!