CVE-2026-64851: Grav Shortcode Core Plugin: Stored XSS in shortcode-core attribute handlers

Published Aug 19, 2026
·
Updated

Grav Shortcode Core Plugin allows for the development shortcode plugins that utilize the common format utilized by WordPress and BBCode. Prior to 6.2.2, Grav Shortcode Core passes shortcode syntax through Security::detectXss() because it contains no literal less-than character, then ColorShortcode.php and related attribute handlers concatenate an attacker-controlled parameter into HTML without encoding. An account with admin.pages permission can close the generated attribute and add an event handler, creating stored cross-site scripting that executes for visitors or administrators who view the page. This issue is fixed in version 6.2.2.

Affected Software

1 affected component
Grav Shortcode Core Plugin<6.2.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Grav Shortcode Core Plugin to a version that resolves this vulnerability.

    Fixed in 6.2.2

Event History

Aug 19, 2026
CVE Published
via MITRE·03:56 PM
Data Sourced
via MITRE·03:56 PM
DescriptionWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs an account with the admin.pages permission and the ability to save shortcode content containing a crafted attribute parameter.

2

Who is exposed to the stored script?

The injected script can execute when visitors or administrators view the affected page. The vulnerable content is stored, so exposure persists until the malicious shortcode content is removed or corrected.

3

Which versions are affected and what is the fix?

Versions prior to 6.2.2 are affected. Upgrade Grav Shortcode Core Plugin to version 6.2.2.

4

What can be done if upgrading is not immediately possible?

Restrict admin.pages permission to trusted users and review pages containing shortcode attributes for attacker-controlled values that could close an HTML attribute and add an event handler. Remove or correct any suspicious stored shortcode content.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203