Grav before 2.0.0 (affected through 2.0.0-rc.9 and the 2.0 branch) contains a stored CSS injection vulnerability in the Markdown image resize() media action. Prior media hardening rejects direct ?style= payloads and unsafe attribute() fallbacks, but the resize() action in Excerpts::processMediaActions() writes caller-controlled values directly into the image's styleAttributes. A lower-privileged content editor who can edit page Markdown can store a crafted image URL with semicolon-delimited CSS declarations in the resize parameters, which are rendered into the final attribute when a higher-privileged reviewer/admin views the page or preview. This does not require JavaScript execution but enables UI redress/overlay and content-manipulation attacks (e.g., a full-viewport fixed overlay). Fixed in 2.0.0.
CVE-2026-58657
Score 4.8 from GitHub Security Advisory published 2026-07-08. a secondary CVSS source baseline 4.8; sources differ by 0.0.
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 4.8
- EG Score
- 4.8(high)
- EPSS
- 12.1%
- KEV
- Not listed
Published
July 8, 2026
Last Modified
July 8, 2026
Advisory Details (4)
Auto-updated Jul 9, 2026Stored CSS injection via Markdown image resize() bypasses prior media style sanitizers in Grav 2.0 · Advisory · getgrav/grav · GitHub
https://github.com/getgrav/grav/security/advisories/GHSA-ffmg-hfvg-jhg9Grav - Stored CSS Injection via Markdown Image resize() Action | Advisories | VulnCheck
https://www.vulncheck.com/advisories/grav-stored-css-injection-via-markdown-image-resize-actioncommit e03d29aa0d3e (getgrav/grav)
Patch available: getgrav/grav 2.0.0-rc.9 (contains commit e03d29aa0d3e)
https://github.com/getgrav/grav/commit/e03d29aa0d3ece16d73c1ffccfa78df8bf5f28b8commit 6582166173bb (getgrav/grav)
Patch available: getgrav/grav 2.0.0-rc.10 (contains commit 6582166173bb)
https://github.com/getgrav/grav/commit/6582166173bb8eb5869d96aea384e0e73777c94cVendor Advisories for CVE-2026-58657(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 26× in last 7d / 28× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:26 UTCEG score recompute
- 2026-07-15 16:26 UTCGHSA enrichment
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-14 16:06 UTCEG score recompute
- 2026-07-14 16:06 UTCGHSA enrichment
- 2026-07-13 22:31 UTCEPSS rescore
- 2026-07-13 15:45 UTCEG score recompute
- 2026-07-13 15:45 UTCGHSA enrichment
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-12 15:25 UTCEG score recompute
- 2026-07-12 15:25 UTCGHSA enrichment
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-11 15:05 UTCEG score recompute
- 2026-07-11 15:04 UTCGHSA enrichment
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-10 14:45 UTCEG score recompute
- 2026-07-10 14:45 UTCGHSA enrichment
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-09 14:26 UTCEG score recompute
Show 3 moreShow fewer
- 2026-07-09 14:25 UTCGHSA enrichment
- 2026-07-08 14:06 UTCEG score recompute
- 2026-07-08 14:05 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-58657?
When was CVE-2026-58657 disclosed?
Is CVE-2026-58657 actively exploited?
What is the CVSS score of CVE-2026-58657?
How do I remediate CVE-2026-58657?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-58657
Is Your Infrastructure Affected by CVE-2026-58657?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.