{"id":"CVE-2026-42841","published":"2026-05-11T14:52:22Z","modified":"2026-05-11T16:19:12Z","title":"Grav: Stored XSS via Markdown media attribute() action in Grav CMS","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"Grav is a file-based Web platform. Prior to 2.0.0-beta.2, an authenticated user with page editing permissions can inject an executable JavaScript event-handler attribute into rendered image HTML through Grav's Markdown media action syntax. The issue is caused by Markdown image query parameters being converted into callable media actions. The public attribute() media method can be reached this way, allowing an editor to set an arbitrary HTML attribute name and value on the generated image element. This vulnerability is fixed in 2.0.0-beta.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0042,"percentile":0.37238,"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-r7fx-8g49-7hhr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav/commit/5a12f9be8314682c8713e569e330f11805d0a663","tags":["x_refsource_MISC"]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":7.45},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 2.0.0-beta.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-11T16:19:03.457943Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":["<2.0.0-beta.2"],"patched":["2.0.0-beta.2"],"from":["GHSA-r7fx-8g49-7hhr"],"provenance":"source"}],"summary":{"text":"Grav, a file-based web platform from getgrav, contains a stored cross-site scripting flaw in its Markdown media handling, where image query parameters are converted into callable media actions, including the public attribute() method. An attacker who holds page-editing permissions, meaning an authenticated user with high privileges, can exploit it by crafting Markdown image syntax that injects an event-handler attribute carrying JavaScript into the rendered image HTML, which requires a victim to view the affected page and interact with it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:27Z"},"euvd":{"id":"EUVD-2026-29072","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-getgrav-grav-cve-2026-42841","children":[{"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"}]}]}}