Skip to main content
EPSS 0.2%top 87%

CVE-2026-85600: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav-plugin-admin2

0
Medium
Published: 09/04/2026 (09/04/2026, 11:30:02 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: grav-plugin-admin2

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.

CVSS v4.0

Score 5.1medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
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

Affected software

getgrav

grav-plugin-admin2

Affected versions
>=0 <=2.0.19

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 11:22:34 UTC

Technical Analysis

The vulnerability in Grav Admin (grav-plugin-admin2) is a stored cross-site scripting flaw in the tHtml() function located in src/lib/stores/i18n.svelte.ts. It improperly neutralizes input by substituting untrusted parameters such as usernames into translation templates before parsing the result as markdown. The server-side username validation (DataUser::isValidUsername) prevents filesystem-dangerous characters but does not filter out HTML special characters like <, >, ", or '. This allows an attacker to register a username containing an HTML payload. When an administrator views UI surfaces that render the username via tHtml(), such as the two-factor force-disable confirmation prompt or the 'page is locked' editor notice, the malicious payload executes in the administrator's authenticated session. The vulnerability is fixed in version 2.0.21.

Potential Impact

An attacker can register a specially crafted username containing HTML/JavaScript code that executes in the context of an administrator's authenticated session when viewed in certain UI components. This can lead to session hijacking, unauthorized actions, or other impacts typical of stored XSS vulnerabilities. The CVSS 4.0 score is 5.1 (medium severity), reflecting network attack vector, low complexity, no privileges required, and user interaction needed.

Mitigation Recommendations

Upgrade Grav Admin (grav-plugin-admin2) to version 2.0.21 or later, where this vulnerability is fixed. Patch status is not explicitly confirmed in the input data, but the description states the issue is fixed in 2.0.21. No other mitigations are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-09-04T11:00:28.731Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a9aada1acd9273b4981da09

Added to database: 09/04/2026, 11:38:09 UTC

Last enriched: 09/07/2026, 11:22:34 UTC

Last updated: 10/17/2026, 18:48:23 UTC

Views: 59

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses