Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. getgrav/grav
  4. ›
  5. CVE-2026-75831

CVE-2026-75831: Grav: Stored XSS via Markdown audio/video media <source> URL

September 17, 2026

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 ![x](song.mp3#"><svg/onload=alert(1)>) 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

  • github.com/advisories/GHSA-6qw9-4vv5-jr97
  • github.com/getgrav/grav/commit/aba291a59cab29ddce491175791888d8d0b65e20
  • github.com/getgrav/grav/security/advisories/GHSA-6qw9-4vv5-jr97
  • nvd.nist.gov/vuln/detail/CVE-2026-75831
  • www.vulncheck.com/advisories/grav-before-stored-xss-via-audio-video-source-url

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 →

Affected versions

All versions before 2.0.15

Fixed versions

  • 2.0.15

Solution

Upgrade to version 2.0.15 or above.

Impact 7.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/getgrav/grav/CVE-2026-75831.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:20:13 +0000.