CVE-2026-64851: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav-plugin-shortcode-core
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.
AI Analysis
Technical Summary
The Grav Shortcode Core Plugin allows shortcode plugins using a format similar to WordPress and BBCode. Before version 6.2.2, the plugin passes shortcode syntax through Security::detectXss(), which does not detect literal less-than characters. Consequently, ColorShortcode.php and related attribute handlers concatenate attacker-controlled parameters into HTML without encoding. An attacker with admin.pages permission can close the generated attribute and add an event handler, resulting in stored cross-site scripting that executes when the page is viewed by visitors or administrators. This issue is addressed in version 6.2.2.
Potential Impact
Successful exploitation allows an attacker with administrative page permissions to inject stored cross-site scripting payloads. These payloads execute in the context of users viewing the affected pages, potentially leading to session hijacking, privilege escalation, or other malicious actions within the affected application.
Mitigation Recommendations
Upgrade the Grav Shortcode Core Plugin to version 6.2.2 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
CVE-2026-64851: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav-plugin-shortcode-core
Description
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.
CVSS v4.0
Score 8.5high
Affected software
pkg:github/getgrav/grav-plugin-shortcode-coreRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Grav Shortcode Core Plugin allows shortcode plugins using a format similar to WordPress and BBCode. Before version 6.2.2, the plugin passes shortcode syntax through Security::detectXss(), which does not detect literal less-than characters. Consequently, ColorShortcode.php and related attribute handlers concatenate attacker-controlled parameters into HTML without encoding. An attacker with admin.pages permission can close the generated attribute and add an event handler, resulting in stored cross-site scripting that executes when the page is viewed by visitors or administrators. This issue is addressed in version 6.2.2.
Potential Impact
Successful exploitation allows an attacker with administrative page permissions to inject stored cross-site scripting payloads. These payloads execute in the context of users viewing the affected pages, potentially leading to session hijacking, privilege escalation, or other malicious actions within the affected application.
Mitigation Recommendations
Upgrade the Grav Shortcode Core Plugin to version 6.2.2 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-20T18:31:39.290Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a85d4edacd9273b494d33ce
Added to database: 08/19/2026, 16:08:13 UTC
Last enriched: 08/19/2026, 16:22:06 UTC
Last updated: 08/19/2026, 16:54:34 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.