{"id":"CVE-2026-55890","published":"2026-07-10T16:17:14Z","modified":"2026-07-10T18:39:18Z","title":"Grav: Stored CSS injection via Markdown image ?style=… reaches MediaObjectTrait::style()","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"Grav is a file-based Web platform. Prior to 2.0.0-rc.9, Grav's incomplete fix for stored XSS through the Markdown media attribute action (CVE-2026-42841) leaves the sibling MediaObjectTrait::style method reachable through the same Markdown excerpt-action pipeline, allowing an editor to save Markdown image style parameters that are written into the rendered img style attribute without sanitization. This issue is fixed in version 2.0.0-rc.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00503,"percentile":0.43937,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-pmf8-g7c8-7v54","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav/commit/24fd6cbc438e12310b126d1176e7d7601203a6f2","tags":["x_refsource_MISC"]},{"url":"https://github.com/getgrav/grav/releases/tag/2.0.0-rc.9","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":8.79},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 2.0.0-rc.9"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-10T18:39:15.530035Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":["<2.0.0-rc.9"],"patched":["2.0.0-rc.9"],"from":["GHSA-pmf8-g7c8-7v54"],"provenance":"source"}],"summary":{"text":"Grav, a file-based web platform from getgrav, has a stored cross-site scripting flaw in its Markdown image handling: the style parameters supplied through the ?style= attribute reach the MediaObjectTrait::style() component and are written into the rendered img style attribute without sanitization. An attacker who holds editor-level privileges and can get a user to interact with the page (AV:N, PR:H, UI:R, with scope changed and a low confidentiality impact) can save crafted Markdown image styling that executes in the context of other users who view the content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:16Z"},"euvd":{"id":"EUVD-2026-42946","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-getgrav-grav-cve-2026-42841","parents":[{"from":"CVE-2026-42841","to":"CVE-2026-55890","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"Prior to 2.0.0-rc.9, Grav's incomplete fix for stored XSS through the Markdown media attribute action (CVE-2026-42841) leaves the sibling MediaObjectTrait::style method reachable through the same Markdown excerpt-action pipeline, allowing…","from":"CVE.org","in":"CVE-2026-55890"},{"kind":"similar","provenance":"machine","score":0.39,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-42844","published":"2026-05-12","fixed":"2.0.0-beta.4","kev":false},{"cve":"CVE-2026-44738","published":"2026-05-11","fixed":"2.0.0-rc.2","kev":false},{"cve":"CVE-2026-53653","published":"2026-07-10","fixed":"2.0.0-rc.8","kev":false,"link":{"from":"CVE-2026-53653","to":"CVE-2026-55890","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.0-rc.8","toFixed":"2.0.0-rc.9","daysApart":0}]}},{"cve":"CVE-2026-55890","published":"2026-07-10","fixed":"2.0.0-rc.9","kev":false},{"cve":"CVE-2026-58657","published":"2026-07-08","fixed":"2.0.0","kev":false,"link":{"from":"CVE-2026-55890","to":"CVE-2026-58657","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.0-rc.9","toFixed":"2.0.0","daysApart":-2}]}},{"cve":"CVE-2026-59193","published":"2026-07-10","fixed":"2.0.0","kev":false,"link":{"from":"CVE-2026-55890","to":"CVE-2026-59193","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.0-rc.9","toFixed":"2.0.0","daysApart":0},{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/GPM/Installer.php"],"commits":["https://github.com/getgrav/grav/commit/24fd6cbc438e12310b126d1176e7d7601203a6f2","https://github.com/getgrav/grav/commit/5a12f9be8314682c8713e569e330f11805d0a663","https://github.com/getgrav/grav/commit/23d6f2adf4ce11889c088ac8557c8314baeef781"],"basis":"shared file"}]}},{"cve":"CVE-2026-61453","published":"2026-07-15","fixed":"2.0.1","kev":false}],"package":"Packagist:getgrav/grav"}}