CVE-2026-1257 Administrative Shortcodes <= 0.3.4 - Authenticated (Contributor+) Local File Inclusion via 'slug' Shortcode Attribute
Authenticated contributors can exploit a path traversal flaw in the Administrative Shortcodes plugin to include arbitrary files and execute PHP code.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-1257?
CVE-2026-1257 is a high-severity path traversal vulnerability in shazdeh Administrative Shortcodes, published on 24 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The Administrative Shortcodes plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 0.3.4 via the 'slug' attribute of the 'get_template' shortcode. This is due to insufficient path validation on user-supplied input passed to the get_template_part() function. This makes it possible for authenticated attackers, with Contributor-level access and above, to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other "safe" file types can be uploaded and included.
Weakness: CWE-98
Which versions are affected by CVE-2026-1257?
How do I fix CVE-2026-1257?
No fix has been published for CVE-2026-1257 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-1257 being exploited?
There is no known exploitation of CVE-2026-1257 in the wild and no public exploit code.
Sources
Also known as GHSA-qqxx-972x-q333.