CVE-2024-12591
Description
The MagicPost plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's wb_share_social shortcode in all versions up to, and including, 1.2.1 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
MagicPost plugin ≤1.2.1 has stored XSS in wb_share_social shortcode, allowing authenticated contributors to inject scripts.
Overview
The MagicPost plugin for WordPress is vulnerable to stored cross-site scripting (XSS) via its wb_share_social shortcode. This flaw affects all versions up to and including 1.2.1 [1]. The root cause is insufficient input sanitization and output escaping on user-supplied attributes within the shortcode.
Exploitation
An authenticated attacker with contributor-level access or higher can craft a shortcode with malicious JavaScript payloads in the attributes. When a post containing the shortcode is viewed by any user, the injected script executes in the context of the victim's browser.
Impact
Successful exploitation enables the attacker to perform a variety of malicious actions, such as stealing session cookies, redirecting users to phishing sites, or defacing the page. Since the attack is stored, every visitor to the affected post is at risk.
Mitigation
Users should update the plugin to a version newer than 1.2.1 as soon as it becomes available. As a temporary workaround, consider disabling the wb_share_social shortcode or restricting contributor-level permissions.
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3News mentions
0No linked articles in our index yet.