Executive brief
The MPG (Multiple Page Generator) plugin for WordPress, used to generate bulk landing pages and programmatic SEO content, contains a SQL injection vulnerability in versions up to 4.2.1. An attacker with subscriber-level access or higher can inject malicious SQL commands through URL parameters when a vulnerable shortcode is rendered site-wide, allowing them to extract sensitive database information without authorization.
Technical details
The vulnerability is a generic SQL Injection in the [mpg_spintax] shortcode handling, caused by insufficient escaping of user-supplied URL parameters and lack of prepared statement usage in SQL query construction. The attack requires an authenticated user with subscriber-level privileges or above, and only triggers when the vulnerable shortcode is active and rendered in site-wide content such as footers or template parts. An attacker can append arbitrary SQL queries to extract sensitive data from the WordPress database. Patched versions beyond 4.2.1 should address the escaping and query preparation issues.
Affected products
- Porthas Multiple Page Generator – Bulk Landing Pages & Programmatic SEO up to and including 4.2.1
Timeline
- 2026-09-12: disclosed