-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
🚨 Security: XSS Vulnerability in Media Library Templates
Severity: High
Type: Cross-Site Scripting (XSS)
Description
The media library Blade templates contain XSS vulnerabilities due to unescaped output of the $attributeString variable using {!! !!} syntax.
Affected Files
- resources/views/vendor/media-library/image.blade.php
resources/views/vendor/media-library/responsiveImage.blade.phpresources/views/vendor/media-library/responsiveImageWithPlaceholder.blade.php
Vulnerable Code
<img{!! $attributeString !!}[if($loadingAttributeValue)](cci:4://file://if($loadingAttributeValue):0:0-0:0) loading="{{ $loadingAttributeValue }}"[endif](cci:4://file://endif:0:0-0:0) src="{{ $media->getUrl($conversion) }}" alt="{{ $media->name }}">Metadata
Metadata
Assignees
Labels
No labels