CVE-2026-8042
Description
The Github Shortcode plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'repo' shortcode attribute in the 'github' shortcode in all versions up to, and including, 0.1 due to insufficient input sanitization and output escaping. 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.
The GitHub Shortcode WordPress plugin up to 0.1 is vulnerable to stored XSS via the 'repo' attribute, allowing authenticated contributors to inject arbitrary scripts.
Vulnerability
The GitHub Shortcode plugin for WordPress versions up to and including 0.1 fails to sanitize the repo attribute in the github shortcode. This allows stored cross-site scripting (XSS) because user-supplied input is not properly escaped before being output. The vulnerable code is in githubshortcode.php [1].
Exploitation
An attacker must have at least Contributor-level access to the WordPress site. They can create or edit a post/page and insert the [github repo="..."] shortcode with a malicious payload in the repo attribute. When any user views the page, the injected script executes.
Impact
Successful exploitation leads to arbitrary JavaScript execution in the context of the victim's browser. This can result in session hijacking, defacement, or redirection to malicious sites. The attacker does not need elevated privileges beyond Contributor.
Mitigation
As of the publication date (2026-05-27), no fixed version has been released. Users should disable the plugin or apply a web application firewall rule to block malicious shortcode attributes. The plugin appears to be unmaintained; consider removing it entirely.
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2<=0.1+ 1 more
- (no CPE)range: <=0.1
- (no CPE)range: <=0.1
Patches
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.