CVE-2026-64628
Received Received - Intake

Stored XSS in Grav CMS via Shortcode Attributes

Vulnerability report for CVE-2026-64628, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-21

Last updated on: 2026-07-21

Assigner: VulnCheck

Description

Grav contains a stored cross-site scripting vulnerability in shortcode-core attribute handlers where the XSS detection scan only matches payloads containing literal angle brackets, allowing shortcode parameters to bypass validation. Attackers with admin.pages permission can inject malicious JavaScript through shortcode attributes that execute in any viewer's browser, including administrators, enabling session hijacking via admin nonce theft.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-21
Last Modified
2026-07-21
Generated
2026-07-21
AI Q&A
2026-07-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
getgrav grav to 6.2.1 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a stored cross-site scripting (XSS) vulnerability in Grav CMS. It occurs in shortcode-core attribute handlers where XSS detection only checks for literal angle brackets. Attackers with admin.pages permission can inject malicious JavaScript via shortcode parameters that bypass validation. The payload executes in any viewer's browser, including administrators, enabling session hijacking through admin nonce theft.

Detection Guidance

Check Grav CMS versions up to 6.2.1 for suspicious shortcode parameters in pages. Review admin.pages permission assignments. Look for unexpected JavaScript in rendered HTML attributes like onmouseover. Use web application firewalls to log and block unusual shortcode patterns.

Impact Analysis

An attacker could steal session cookies or admin nonces, allowing them to hijack sessions and perform actions with elevated privileges. The injected script executes in the browser of any user viewing the compromised page, including administrators, potentially leading to full system compromise.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating GDPR's data protection requirements and HIPAA's security rules for protected health information. Organizations using vulnerable Grav versions may face compliance violations, legal penalties, and reputational damage due to potential data breaches.

Mitigation Strategies

Upgrade Grav CMS to the latest version if available. Remove admin.pages permissions from untrusted users. Implement strict input validation for shortcode attributes. Use output encoding for all dynamic content. Monitor for unauthorized page edits or script injections.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-64628. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart