Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 95%

CVE-2026-42842: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav

0
Medium
VulnerabilityCVE-2026-42842cvecve-2026-42842cwe-79
Published: 05/11/2026 (05/11/2026, 15:29:36 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: grav

Description

The form plugin for Grav adds the ability to create and use forms. Prior to 9.1.0, a Stored Cross-Site Scripting (XSS) vulnerability exists in the Grav CMS Form plugin's select field template. Taxonomy tag and category values are rendered with the Twig |raw filter in the admin panel, bypassing the global autoescape protection. An editor-level user can inject arbitrary JavaScript that executes in any administrator's browser session when they view or edit any page in the admin panel. This vulnerability is fixed in 9.1.0.

CVSS v3.1

Score 5.4medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected software

GitHub Actionsmore threats →ai
getgrav/grav
pkg:github/getgrav/grav
Affected versions
=2.0.0-beta.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/12/2026, 02:10:47 UTC

Technical Analysis

The Grav CMS Form plugin before version 9.1.0 contains a stored XSS vulnerability (CWE-79) in its select field template. This vulnerability arises because taxonomy tag and category values are output using the Twig |raw filter in the admin panel, which disables automatic escaping of potentially malicious input. An attacker with editor-level privileges can inject JavaScript code that will execute in the browsers of administrators who view or edit any page in the admin interface. This vulnerability allows for cross-site scripting attacks that can compromise administrator sessions or perform unauthorized actions within the admin panel. The issue is resolved in Grav CMS Form plugin version 9.1.0.

Potential Impact

Successful exploitation allows an attacker with editor-level access to inject and store malicious JavaScript code that executes in the context of administrator users' browsers. This can lead to session hijacking, unauthorized actions, or other client-side attacks within the admin panel. The vulnerability does not affect availability and requires user interaction (administrator viewing or editing pages). The CVSS 3.1 base score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, required privileges at editor level, user interaction needed, and partial confidentiality and integrity impact.

Mitigation Recommendations

Upgrade the Grav CMS Form plugin to version 9.1.0 or later, where this vulnerability is fixed. There is no official patch or temporary fix indicated other than upgrading. Until upgraded, restrict editor-level access to trusted users only and monitor for suspicious activity in the admin panel. Patch status is not explicitly stated beyond the fix in version 9.1.0, so verify with the vendor advisory for the latest remediation guidance.

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
GitHub_M
Date Reserved
2026-04-30T16:44:48.376Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a028781cbff5d86108b8f5c

Added to database: 05/12/2026, 01:50:57 UTC

Last enriched: 05/12/2026, 02:10:47 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 99

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