Advisory record · GHSA-ffmg-hfvg-jhg9

Grav: Stored CSS injection via Markdown image resize() bypasses prior media style sanitizers in Grav

CVSS 4.8 MediumEPSS 0.0027 · 18th percentile

Published by the GitHub Advisory Database at 16 Sept 2026, 22:14 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
getgrav/gravPackagist>=2.0.0-rc.9, <2.0.02.0.0
Identifiers
GHSA-ffmg-hfvg-jhg9 · CVE-2026-58657 · PKSA-fkd8-syrt-878t
Weakness (CWE)
CWE-79
Published
16 Sept 2026
Updated
16 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Grav versions 2.0.0-rc.9 up to (but not including) 2.0.0 are affected by stored CSS injection in Markdown image media actions, where the resize() action writes unvalidated width and height values directly into an image's style attribute. A user who can edit page Markdown can store a crafted image URL that adds extra CSS declarations, which are rendered for higher-privileged users viewing the page or admin preview; the source describes this as overlay and content-manipulation risk, not JavaScript execution. Upgrade to Grav 2.0.0.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
4.8 Medium 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0027, the 18th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 13:56 UTC First seen by agentprime
  2. 31 Oct 2026, 13:56 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.