CVE-2026-104904

Shortcodes Ultimate <= 7.9.1 - Unauthenticated Local File Inclusion via 'Host' Header via %CURRENT_URL% in [su_qrcode]

2026-11-20 19:45
Jakub Herman

Strategic Overview

Status
Patched in 7.9.2
Affected Version
<= 7.9.1
CVSS
6.5Medium
Weakness type
CWE-98 · Improper Control of Filename for Include/Require Statement in PHP Program
CVE
CVE-2026-104904
View all Shortcodes Ultimate – Content Elements vulnerabilities

At a glance

CVE-2026-104904 is a medium-severity Improper Control of Filename for Include/Require Statement in PHP Program vulnerability in the Shortcodes Ultimate WordPress plugin, affecting versions <= 7.9.1. It carries a CVSS score of 6.5 (reachable over the network; high confidentiality impact). Exploitation requires no authentication. The issue is fixed in version 7.9.2; sites on affected versions should update now. Disclosed November 2026, reported by Jakub Herman.

Vulnerability Overview

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%"].

Technical Analysis

The vector marks this flaw as remotely reachable over the network, and no privileges on the target site, and no interaction from a victim user. A successful exploit has high impact on confidentiality.

CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program

Shortcodes Ultimate <= 7.9.1 carries this weakness at and, and reaching it takes no account at all. PHP file inclusion means a path used by include or require is built from request data, so the file that gets executed is under the caller's influence.

Including an attacker-influenced file executes its contents, which is why this class is routinely chained with an upload or log-poisoning step to reach code execution. For Shortcodes Ultimate the fix is 7.9.2: builds <= 7.9.1 are affected, anything from 7.9.2 onward is not.

Remediation

Update to version 7.9.2, or a newer patched version

How does WordSec protect against this?

Requests carrying this pattern arrive without a session, so nothing upstream of the firewall gets a chance to reject them: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: Shortcodes Ultimate 7.9.2 closes this, and updating the plugin is the step that ends it.

  • Firewall
  • Scanner
  • Login Security

External References

Related records

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C