5.1medium
Grav Admin before 2.0.21 Stored XSS via username
- Severity
- 5.1medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.24% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| getgrav grav-plugin-admin2 | up to 2.0.19 Not affected: 2.0.21 | CVE List |
All scores
| VulnCheck | 5.1medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| VulnCheck | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
References
| https://github.com/getgrav/grav/security/advisories/GHSA-96xm-c5hr-59rx | exploit, vendor-advisory | |
| https://www.vulncheck.com/advisories/grav-admin-before-2.0.21-stored-xss-via-username | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-85600 changed 2026-09-05 | CVE Terms of Use |
| NVD | CVE-2026-85600 changed 2026-09-08 | Public domain |