CVE-2026-64851 HIGH

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

Vendor Getgrav
Product grav-plugin-shortcode-core
Weakness CWE-79 · XSS
Published August 19, 2026
Last update August 19, 2026

CVSS base score

8.5/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

The Grav Shortcode Core plugin before version 6.2.2 contains a cross-site scripting (XSS) vulnerability in shortcode processing. An attacker with low-level site access can inject malicious scripts that execute in other users' browsers when they view affected content. This requires user interaction to trigger the payload.

What an attacker can do

03Attacker Capabilities

Inject malicious scripts that run in other users' browsers when they view the attacker's content.

Potential impact on your site

04Site Impact

Users' sessions can be hijacked, credentials stolen, or site content modified without their knowledge.

Conditions required to exploit

05Prerequisites

Low-level site access (e.g., contributor or editor role) and the victim must view a page containing the malicious shortcode.

Key dates

06Disclosure timeline

August 19, 2026 CVE published

Related vulnerabilities

08Related CVE