CVE-2026-75831: Grav: Stored XSS via Markdown audio/video media <source> URL
A Markdown audio or video embed renders its <source> element as raw HTML with the media URL concatenated unescaped. The URL fragment is reflected without any encoding, so >) breaks out of <source src="…"> and injects arbitrary HTML — including a script-executing <svg onload> — into the rendered page. Any user who views the page runs the attacker’s JavaScript in their session; a logged-in administrator who views it exposes their same-origin Grav Admin session to the attacker’s script.
This is the next sink in the media-parameter injection class the maintainer has been closing: GHSA-r7fx-8g49-7hhr (attribute()), GHSA-pmf8-g7c8-7v54 / CVE-2026-55890 (style(), 2.0.0-rc.9), and GHSA-ffmg-hfvg-jhg9 (resize(), 2.0.0-rc.10). All three guarded image style/attribute sinks; the aba291a5 audit scoped itself to “sinks reaching the style attribute” and did not cover the audio/video <source> rawHtml sink, which reaches full script execution rather than CSS injection.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-75831 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →