Description
Laravel-Mediable before 7.0.0 contains a stored cross-site scripting vulnerability that allows authenticated or anonymous users to execute arbitrary JavaScript by uploading unsanitized SVG files containing embedded scripts in onload event handlers, script tags, or foreignObject elements. Attackers can store persistent XSS payloads in uploaded SVG files that execute with full DOM access when victims open or preview the file, enabling session cookie theft, CSRF token capture, and account takeover.
Problem types
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
Any version before 7.0.0
Credits
Xurshidbek Sobirjonov
VulnCheck
References
github.com/plank/laravel-mediable/releases/tag/7.0.0 (laravel-mediable 7.0.0 Release Notes)
github.com/...ommit/65046b2162fac23ec5d5e8fbdff01a9a0804003e (Patch Commit)
www.vulncheck.com/...mediable-stored-xss-via-svg-file-upload