Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 4 min read

CVE-2026-69241: CVE-2026-69241: Stored Cross-Site Scripting via Unsanitized SVG Upload in Filament Curator

CVE-2026-69241: Stored Cross-Site Scripting via Unsanitized SVG Upload in Filament Curator Vulnerability ID: CVE-2026-69241 CVSS Score: 5.4 Published: 2026-11-17 Filament Curator, a media picker plugin for Filament

CVE-2026-69241: Stored Cross-Site Scripting via Unsanitized SVG Upload in Filament Curator

Vulnerability ID: CVE-2026-69241
CVSS Score: 5.4
Published: 2026-11-17

Filament Curator, a media picker plugin for Filament panels in Laravel applications, contains a Stored Cross-Site Scripting (XSS) vulnerability in versions prior to 3.7.9, 4.1.2, and 5.1.2. The application accepts image/svg+xml uploads by default and stores them on disk without stripping executable XML markup. When a panel user opens an uploaded SVG via the View action, the file renders as a top-level document in the browser, executing embedded JavaScript within the origin of the Filament application.

TL;DR

Authenticated users with media upload permissions can upload SVG files containing embedded JavaScript to Filament Curator. When another user clicks the 'View' action on the uploaded media, the script executes in the application's origin, enabling session hijacking and unauthorized state-changing operations. Upgrade to versions 3.7.9, 4.1.2, or 5.1.2 and run php artisan curator:sanitize-svgs to remediate.

Technical Details

  • Vulnerability Type: Stored Cross-Site Scripting (Stored XSS)
  • CWE ID: CWE-79 / CWE-284
  • CVSS v3.1 Score: 5.4 (Medium)
  • Attack Vector: Network (Authenticated Media Upload)
  • Affected Component: Awcodes\Curator\Components\Forms\Uploader
  • Patched Versions: 3.7.9, 4.1.2, 5.1.2
  • Exploit Status: No known public exploits
  • KEV Status: Not Listed

Affected Systems

  • awcodes/filament-curator
  • filament-curator: >= 3.0.0, < 3.7.9 (Fixed in: 3.7.9)
  • filament-curator: >= 4.0.0, < 4.1.2 (Fixed in: 4.1.2)
  • filament-curator: >= 5.0.0, < 5.1.2 (Fixed in: 5.1.2)

Code Analysis

Commit: 7613e6e

Sanitize SVG uploads to prevent stored XSS and add curator:sanitize-svgs command

diff --git a/src/Components/Forms/Uploader.php b/src/Components/Forms/Uploader.php
index f166cfe4..e0bb5911 100644
--- a/src/Components/Forms/Uploader.php
+++ b/src/Components/Forms/Uploader.php
@@ -76,6 +76,14 @@ protected function setUp(): void
                 $component->getDiskName()
             );

+            // SVGs are served as raw markup (they are not routed through Glide),
+            // so strip any embedded scripts before they can execute inline.
+            if (Curator::isSvg($extension)) {
+                $disk = Storage::disk($component->getDiskName());
+                $disk->put($path, Curator::sanitizeSvg($disk->get($path)), $component->getVisibility());
+                $size = $disk->size($path);
+            }
+
             $data = [
                 'disk' => $component->getDiskName(),
                 'directory' => $component->getDirectory(),

Commit: f0cf652

Backport SVG upload sanitization and CLI command for 3.x branch

Mitigation Strategies

  • Server-Side XML Sanitization: Strip executable elements (), inline event handlers (onload, onerror), and remote references from SVG files upon upload using enshrined/svg-sanitize.</li> <li>Retroactive Storage Auditing: Scan and clean pre-existing SVG assets on storage disks to eliminate dormant stored payloads.</li> <li>File Type Restriction: Disable image/svg+xml uploads in the Curator configuration if vector graphics are not strictly required by panel users.</li> <li>HTTP Response Hardening: Serve user-uploaded SVG files with a restrictive Content-Security-Policy (sandbox) or force downloads via Content-Disposition: attachment.</li> </ul> <p><strong>Remediation Steps:</strong></p> <ol> <li>Run &#39;composer update awcodes/filament-curator&#39; to upgrade to version 3.7.9, 4.1.2, or 5.1.2.</li> <li>Run &#39;php artisan curator:sanitize-svgs --dry-run&#39; to identify existing SVG files on disk that contain executable markup.</li> <li>Run &#39;php artisan curator:sanitize-svgs&#39; to strip malicious elements from existing SVG files in storage.</li> <li>Manually review and delete any files flagged as &#39;skipped (could not sanitize)&#39; during the Artisan command execution.</li> </ol> <h2> <a name="references" href="#references" class="anchor"> </a> References </h2> <ul> <li><a href="https://github.com/awcodes/filament-curator/security/advisories/GHSA-8vm9-f75m-5h2m">GitHub Security Advisory GHSA-8vm9-f75m-5h2m</a></li> <li><a href="https://github.com/awcodes/filament-curator/commit/7613e6ef4c4d716efdb5e3c8f65aca88256df1df">Patch Commit (4.x / 5.x): Sanitize SVG uploads to prevent stored XSS</a></li> <li><a href="https://github.com/awcodes/filament-curator/commit/f0cf6520783aa82708cce30789835e7f48084291">Patch Commit (3.x): Sanitize SVG uploads to prevent stored XSS</a></li> <li><a href="https://github.com/awcodes/filament-curator/releases/tag/v3.7.9">Filament Curator v3.7.9 Release Notes</a></li> <li><a href="https://github.com/awcodes/filament-curator/releases/tag/v4.1.2">Filament Curator v4.1.2 Release Notes</a></li> <li><a href="https://github.com/awcodes/filament-curator/releases/tag/v5.1.2">Filament Curator v5.1.2 Release Notes</a></li> <li><a href="https://nvd.nist.gov/vuln/detail/CVE-2026-69241">NVD - CVE-2026-69241</a></li> <li><a href="https://www.cve.org/CVERecord?id=CVE-2026-69241">CVE.org Record - CVE-2026-69241</a></li> <li><a href="https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/69xxx/CVE-2026-69241.json">CVE List V5 JSON Record</a></li> </ul> <hr> <p><em><a href="https://cvereports.com/reports/CVE-2026-69241">Read the full report for CVE-2026-69241 on our website</a> for more details including interactive diagrams and full exploit analysis.</em></p>
πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.