Stored XSS via unencoded shortcode handler attributes
Published Jul 21, 2026 · Updated Jul 21, 2026
Stored XSS in Grav Shortcode Core 6.2.1 and earlier allows remote authenticated users to execute JavaScript in page viewers' browsers. Security::detectXss accepts shortcode input without a literal less-than sign, while ColorShortcode.php and related handlers place parameters into HTML attributes without encoding. The attack requires admin.pages permission; a quote closes the attribute, and the stored handler runs for visitors or administrators with access to session actions.
Summary
What happened
Stored XSS in Grav Shortcode Core 6.2.1 and earlier allows remote authenticated users to execute JavaScript in page viewers' browsers. Security::detectXss accepts shortcode input without a literal less-than sign, while ColorShortcode.php and related handlers place parameters into HTML attributes without encoding. The attack requires admin.pages permission; a quote closes the attribute, and the stored handler runs for visitors or administrators with access to session actions.
The record
- CVE
- CVE-2026-64628
- Published
- Jul 21, 2026
- Updated
- Jul 21, 2026
- Vendor
- Grav
- Product
- Grav
- Classifications
- CWE-79, T1059.007
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 21, 2026CVE publishedPublication date reported by the CVE source.
- Jul 21, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=6.2.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Vendor shortcode-attribute stored XSS proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo