CVE-2026-58657
published medium CVSS 4.0 · 4.8Grav - Stored CSS Injection via Markdown Image resize() Action
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Grav | — | Grav2.0.0-rc.9 to < 2.0.0 (affected · semver) · 2.0.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
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 <img style=...> 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.8 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Grav | Grav | 2.0.0-rc.9 to < 2.0.0 (affected · semver)2.0.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
4- https://github.com/getgrav/grav/commit/6582166173bb8eb5869d96aea384e0e73777c94c
- https://github.com/getgrav/grav/commit/e03d29aa0d3ece16d73c1ffccfa78df8bf5f28b8
- GitHub Security Advisory (GHSA-ffmg-hfvg-jhg9) https://github.com/getgrav/grav/security/advisories/GHSA-ffmg-hfvg-jhg9
- VulnCheck Advisory: Grav - Stored CSS Injection via Markdown Image resize() Action https://www.vulncheck.com/advisories/grav-stored-css-injection-via-markdown-image-resize-action
Provider assertions
2VulnCheck · cna
Grav - Stored CSS Injection via Markdown Image resize() Action
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 14d701c11b9d45fd3a7d03a2f8a7604434675cd8a65643cb7d649ecbd595a78f
- Ingested
- 09 Oct 2026, 16:30:28 UTC
- Source record
- Official CVE record