Description
BookStack before 26.05.4 contains a stored cross-site scripting vulnerability in the drawing upload endpoint that accepts unvalidated base64 content and stores it without content inspection. Attackers with editor permissions can upload SVG files containing scripts that execute in administrator browsers when accessed through the image gallery API without content-type validation or CSP headers.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| bookstackapp | bookstack | < 26.05.4 | 26.05.4 |
References
- https://github.com/BookStackApp/BookStack product
- Patch Commit patch
- https://github.com/BookStackApp/BookStack/blob/v26.05.3/app/Uploads/ImageService.php technical-description
- BookStack v26.05.4 Release Notes release-notes
- https://www.bookstackapp.com/blog/bookstack-release-v26-05-4/ vendor-advisory
- VulnCheck Advisory: BookStack before 26.05.4 Stored XSS via Drawing Upload third-party-advisory