---
id: CVE-2025-66843
title: >-
  grav before v1.7.49.5 has a Stored Cross-Site Scripting (Stored XSS)
  vulnerability in the page editing functionality
summary: >-
  grav before v1.7.49.5 has a Stored Cross-Site Scripting (Stored XSS)
  vulnerability in the page editing functionality. An authenticated
  low-privileged user with permission to edit content can inject malicious
  JavaScript payloads into edit…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
  - CWE-79
vendor: getgrav
product: grav
affected:
  - grav < 1.7.49.5
patched:
  - grav 1.7.49.5
published: '2025-12-15'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T13:10:00.187'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-66843'
references:
  - url: 'https://github.com/Yohane-Mashiro/grav_cve/issues/1'
    label: cve@mitre.org
  - url: 'https://github.com/Yohane-Mashiro/grav_cve/issues/1'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00162
epssPercentile: 0.04962
ingestedAt: '2026-10-14T13:30:58.428Z'
---

## Overview

grav before v1.7.49.5 has a Stored Cross-Site Scripting (Stored XSS) vulnerability in the page editing functionality. An authenticated low-privileged user with permission to edit content can inject malicious JavaScript payloads into editable fields. The payload is stored on the server and later executed when any other user views or edits the affected page.

## Affected

- `grav < 1.7.49.5`

## Remediation

Upgrade past the affected range:

- `grav 1.7.49.5`
