---
id: CVE-2026-85600
title: >-
  Grav Admin (getgrav/grav-plugin-admin2) versions <= 2.0.19 contain a stored
  cross-site scripting vulnerability in the tHtml() function
  (src/lib/stores/i18n.svelte.ts), which substitutes untrusted parameters such
  as usernames into transla…
summary: >-
  Grav Admin (getgrav/grav-plugin-admin2) versions <= 2.0.19 contain a stored
  cross-site scripting vulnerability in the tHtml() function
  (src/lib/stores/i18n.svelte.ts), which substitutes untrusted parameters such
  as usernames into transla…
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
published: '2026-09-04'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T20:05:53.177'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85600'
references:
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-96xm-c5hr-59rx'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/grav-admin-before-2.0.21-stored-xss-via-username
    label: disclosure@vulncheck.com
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-96xm-c5hr-59rx'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00235
epssPercentile: 0.12872
ingestedAt: '2026-09-06T01:47:58.247Z'
---

## Overview

Grav Admin (getgrav/grav-plugin-admin2) versions <= 2.0.19 contain a stored cross-site scripting vulnerability in the tHtml() function (src/lib/stores/i18n.svelte.ts), which substitutes untrusted parameters such as usernames into translation templates before parsing the result as markdown. Grav's server-side username validation (DataUser::isValidUsername) blocks filesystem-dangerous characters but not <, >, ", or ', allowing an attacker to register a username containing an HTML payload. When an administrator views a UI surface that renders the username through tHtml()—such as the two-factor force-disable confirmation prompt or the 'page is locked' editor notice—the payload executes in their authenticated session. Fixed in 2.0.21.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
