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

- Severity: High 8.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-19T15:56:43.614Z
- Modified: 2026-09-09T21:13:25.910Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- getgrav grav-plugin-shortcode-core: < 6.2.2

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-q5fw-vpqc-fgph> (exploit)
- <https://github.com/getgrav/grav-plugin-shortcode-core/commit/2a55eac8a2cc7f6c2d4923ab2fa7991039620597>
- <https://github.com/getgrav/grav-plugin-shortcode-core/releases/tag/6.2.2>

## Sources

- CVE List: [CVE-2026-64851](https://www.cve.org/CVERecord?id=CVE-2026-64851), CVE Terms of Use, modified 2026-08-19
- NVD: [CVE-2026-64851](https://nvd.nist.gov/vuln/detail/CVE-2026-64851), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-64851 · Whole record: https://cve.day/CVE-2026-64851.json · Rebuilt by cve.day 2026-11-25T22:59:33.974Z
