CVE-2026-58657
Last modified
CVE-2026-58657 is a medium-severity vulnerability rated 4.8/10 on the CVSS scale. 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.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Grav | Grav | >= 2.0.0-rc.9, < 2.0.0 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-58657?
How severe is CVE-2026-58657?
How do I fix CVE-2026-58657?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-5865Type Confusion in V8 in Google Chrome prior to 147.0.7727.55…8.8
- CVE-2026-58652luci-app-travelmate (and the travelmate package) contain a p…7.7
- CVE-2026-58653PraisonAI before 0.1.7 fails to validate that project_id in …5.3
- CVE-2026-58654The Grav API plugin (getgrav/grav-plugin-api) 1.0.0 contains…5.3
- CVE-2026-58655The bundled Grav Flex Objects plugin (getgrav/grav-plugin-fl…8.8
- CVE-2026-58656Grav API plugin before v1.0.0-rc.16 accepts JWT tokens via t…8.7
- CVE-2026-58658GPUStack through 2.2.1, fixed in commit 4e20551, contains an…8.8
- CVE-2026-58659PyTorch Lightning through 2.6.5, fixed in commit d710d68, co…8.4
- CVE-2026-5866Use after free in Media in Google Chrome prior to 147.0.7727…8.8
- CVE-2026-58660Kanboard through 1.2.52, fixed in commit 564cc30, BoardAjaxC…8.1
- CVE-2026-58661n8n before 2.28.0 (and before 1.123.58 on the 1.x branch) co…4.3
- CVE-2026-58662Improper Validation of Specified Quantity in Input, Out-of-b…9.1
Are you affected by CVE-2026-58657?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
