PACKAGIST · SEPTEMBER 2026 · EARLY WARNING

Grav Package Vulnerability: Stored XSS Due to detectXss() Flaw

EARLY WARNING · UNCONFIRMED. This page describes a developing threat that 0Day surfaced from early signals and has not yet independently confirmed. Details may change. Always verify against the primary sources before acting.
Severity
HIGH
Affected component
grav (packagist)
Affected versions
<= 2.0.14
Patched version
Not yet available
GHSA-VFMF-Q6X9-CW96

An early warning has been issued for a stored XSS vulnerability in the Grav package, affecting versions up to and including 2.0.13. This vulnerability is due to a flaw in the detectXss() function.

What happened

An early warning has been issued regarding a stored XSS vulnerability in the Grav package. This vulnerability, tracked as GHSA-VFMF-Q6X9-CW96, is due to a flaw in the detectXss() function that fails to detect an event-handler attribute after an unpaired quote in an unquoted attribute value. This affects versions up to and including 2.0.13. The vulnerability has not been reported as exploited in the wild. Users of the affected versions should assess their exposure and take appropriate action.

The Grav package, a popular content management system, is reportedly affected by this vulnerability. The flaw allows for stored XSS attacks, which can lead to unauthorized script execution in the context of a user's session. This can potentially lead to data theft, session hijacking, and other malicious activities. The vulnerability is under investigation, and users are advised to stay informed about updates from the primary sources.

What to do about it

How 0Day would have caught this

MATCHED TO YOUR ACTUAL DEPENDENCY GRAPH0Day matches every incoming threat signal against your GitHub organization’s full dependency graph, including transitive dependencies. If grav is anywhere in your dependency tree, the engineers who own the affected repositories get a push alert the moment it is flagged — no manual audit to remember to run.

Read how this differs from waiting on a scanner to catch a known advisory, or see the exact, read-only access 0Day needs to do this for an organization.

Frequently asked questions

Am I affected?

If you are using Grav package version 2.0.13 or earlier, you are potentially affected by this vulnerability.

What should I do right now?

Upgrade to a version of Grav that includes the fix for this vulnerability and review your application for any instances where user-supplied data is rendered without proper sanitization.

Has this been exploited in the wild?

There are no reports of this vulnerability being exploited in the wild at this time.

Sources

Join the 0Day waitlist →

← Back to all threats