{"id":"CVE-2026-69241","aliases":["CVE-2026-69241","GHSA-8vm9-f75m-5h2m"],"related":[],"kind":"vulnerability","state":"published","title":"Filament Curator: Stored XSS via unsanitized SVG upload served inline","summary":"Filament Curator is a media picker plugin for Filament panels. From 3.0.0 until 3.7.9, 4.1.2, and 5.1.2, the Curator media panel accepts image/svg+xml files by default and stores and serves their markup inline without sanitization. An authenticated user with media-upload permission can store an SVG containing scripts, event-handler attributes, or javascript: URIs. When another panel user selects the View action, the SVG opens as a top-level browser document and its active content executes in the Filament application's origin. The script can perform authenticated same-origin actions as the viewing user and read same-origin data and script-accessible tokens. Panel thumbnails are not affected because they render through an image element that does not execute SVG script. This issue is fixed in versions 3.7.9, 4.1.2, and 5.1.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Filament Curator is a media picker plugin for Filament panels. From 3.0.0 until 3.7.9, 4.1.2, and 5.1.2, the Curator media panel accepts image/svg+xml files by default and stores and serves their markup inline without sanitization. An authenticated user with media-upload permission can store an SVG containing scripts, event-handler attributes, or javascript: URIs. When another panel user selects the View action, the SVG opens as a top-level browser document and its active content executes in the Filament application's origin. The script can perform authenticated same-origin actions as the viewing user and read same-origin data and script-accessible tokens. Panel thumbnails are not affected because they render through an image element that does not execute SVG script. This issue is fixed in versions 3.7.9, 4.1.2, and 5.1.2.","source":"cvelist"},{"lang":"en","text":"## Summary\n\n  SVG files uploaded through the Curator media panel are stored and served inline without any\n  sanitization. An authenticated user with permission to upload media can upload an SVG\n  containing embedded JavaScript. When another panel user opens that file via the **View**\n  action (which opens the media as a top-level browser document), the embedded script executes\n  in the origin of the Filament application.\n\n  `image/svg+xml` is included in the default accepted MIME types, so a default installation is\n  affected unless SVG uploads have been explicitly disabled.\n\n  ## Impact\n\n  Because the SVG is served as a **top-level document** (not embedded in an `<img>` tag), any\n  `<script>`, event-handler attribute (e.g. `onload`), or `javascript:` URI inside it runs with\n  full script privileges in the application's origin. In a Filament admin context this can be\n  leveraged to:\n\n  - perform actions as the viewing user (typically a privileged administrator) via\n  authenticated same-origin requests,\n  - read same-origin data the victim's session can access,\n  - exfiltrate cookies/tokens not protected from script access.\n\n  The primary escalation path is a lower-privileged content author planting a payload that is\n  later triggered when a higher-privileged user clicks **View** on the file. Panel thumbnails\n  are **not** affected — they render through an `<img>` tag, which does not execute SVG script.\n\n  ## Proof of concept\n\n  1. As a user who can upload media, upload an SVG file containing:\n\n     ```xml\n     <svg xmlns=\"http://www.w3.org/2000/svg\" onload=\"alert(document.domain)\">\n       <rect width=\"100\" height=\"100\" fill=\"#fff\"/>\n     </svg>\n\n  2. In the Curator panel, click the View (eye) action for the uploaded file. The file opens as\n  a standalone document and the script executes in the application origin.\n\n  Patches\n\n  The fix sanitizes SVG markup at the upload choke point (Uploader), stripping scripts, event\n  handlers, and remote references before the file is written to storage. Sanitizing at the\n  source closes every serving path (the direct storage URL and the on-the-fly\n  Glide/MediaController fallback) without changing the default accepted MIME types.\n  Sanitization fails closed: if the markup cannot be parsed it is not stored.\n\n  A console command is included to re-sanitize SVG files already stored on disk from earlier\n  uploads:\n\n  php artisan curator:sanitize-svgs           # sanitize in place\n  php artisan curator:sanitize-svgs --dry-run # preview only\n\n  After upgrading to a patched release, run curator:sanitize-svgs to clean any SVGs uploaded\n  before the patch.\n\n  Workarounds\n\n  If you cannot upgrade immediately, either of the following mitigates the issue:\n\n  - Disallow SVG uploads — remove image/svg+xml from the accepted file types (e.g. via\n  acceptedFileTypes(...) on the Curator field/plugin), or\n  - Serve untrusted SVGs safely — configure your web server / storage responses to send stored\n  SVGs with Content-Disposition: attachment (or a Content-Security-Policy that blocks inline\n  script) so they cannot execute as a top-level document.\n\n  Credit\n\n  Reported via coordinated disclosure by [Afsana Alijabarova](https://github.com/afa114).","format":"markdown","source":"ghsa"}],"published":"2026-11-17T18:46:44.196Z","modified":"2026-11-18T17:17:49.250Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-284"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.7.9","status":"affected"},{"version":">= 4.0.0, < 4.1.2","status":"affected"},{"version":">= 5.0.0, < 5.1.2","status":"affected"}],"vendor":"awcodes","product":"filament-curator","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.1.2"}],"ecosystem":"Packagist","package":"awcodes/filament-curator","purl":"pkg:composer/awcodes/filament-curator","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.1.2"}],"ecosystem":"Packagist","package":"awcodes/filament-curator","purl":"pkg:composer/awcodes/filament-curator","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.7.9"}],"ecosystem":"Packagist","package":"awcodes/filament-curator","purl":"pkg:composer/awcodes/filament-curator","source":"ghsa"}],"references":[{"url":"https://github.com/awcodes/filament-curator/security/advisories/GHSA-8vm9-f75m-5h2m","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/awcodes/filament-curator/commit/7613e6ef4c4d716efdb5e3c8f65aca88256df1df","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/awcodes/filament-curator/commit/f0cf6520783aa82708cce30789835e7f48084291","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/awcodes/filament-curator/releases/tag/v3.7.9","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/awcodes/filament-curator/releases/tag/v4.1.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/awcodes/filament-curator/releases/tag/v5.1.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/awcodes/filament-curator","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-11-18T16:36:26.176Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-69241","url":"https://www.cve.org/CVERecord?id=CVE-2026-69241","licence":"CVE Terms of Use","modified":"2026-11-18T16:37:55.297Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8vm9-f75m-5h2m","url":"https://github.com/advisories/GHSA-8vm9-f75m-5h2m","licence":"CC-BY-4.0","modified":"2026-11-17T21:00:04.047Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-69241","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69241","licence":"Public domain","modified":"2026-11-18T17:17:49.250Z"}],"updatedAt":"2026-11-25T22:59:51.018Z","epss":{"score":0.00343,"percentile":0.29836,"date":"2026-12-01T12:00:22.000Z"}}