A stored Cross-Site Scripting (XSS) vulnerability exists in the Grav CMS at the /admin/pages/[page] endpoint via the data[header][template] parameter. This flaw allows attackers with admin access to inject malicious JavaScript code into the page's frontmatter, which executes when the page is viewed in the admin interface or frontend. The vulnerability affects versions prior to 1.8.0-beta.27 and has a CVSS 4.0 base score of 6.2 (medium severity).