# CVE-2026-48821: Shaarli DOM-based XSS in Thumbnail Synchronizer

Source: https://junglewise.ai/threats/cve-2026-48821-shaarli-dom-based-xss-in-thumbnail-synchronizer  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-17. Updated: 2026-06-20  
License: CC BY 4.0 with a link back

CVE-2026-48821 · Severity: medium · CVSS 5.8 · Published 2026-06-17

Shaarli is a self-hosted bookmarking service. A security flaw in its thumbnail synchronization feature allows a malicious bookmark title to execute unauthorized code in an administrator's browser. If an administrator triggers a thumbnail update, an attacker could potentially hijack their session, escalate privileges, or gain full control over the application instance.

Technologies: [Shaarli](https://junglewise.ai/threats/technologies/shaarli). Vendors: [Shaarli](https://junglewise.ai/threats/vendors/shaarli).

## Quick answers

**Is CVE-2026-48821 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-48821 being exploited in the wild.

**How severe is CVE-2026-48821?** Medium severity, with a CVSS score of 5.8, published 17 June 2026.

**Which products and versions are affected?** Shaarli <= 0.16.1.

**Is there a fix for CVE-2026-48821?** A patch was published on 2026-05-23: Version 0.16.2 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-48821 attacked?** It is attacked with local access, in a network appliance.

**Am I affected by CVE-2026-48821?** Check whether you run Shaarli at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A DOM-based Cross-Site Scripting (XSS) vulnerability exists in Shaarli's Thumbnail Synchronizer. The backend 'ThumbnailsController::ajaxUpdate' method uses a 'raw' formatter that returns unescaped bookmark titles in JSON responses. The frontend 'thumbnails-update.js' script then processes this AJAX response and inserts the title into the DOM using 'innerHTML' without sanitization. An attacker can exploit this by creating a bookmark with a malicious payload in the title; when an administrator runs the thumbnail update process, the payload executes. This can lead to session hijacking and full administrative takeover. The issue is fixed in version 0.16.2 by properly sanitizing DOM insertions.

## Affected products

- Shaarli Shaarli <= 0.16.1

## Timeline

- 2026-05-23: patched: Version 0.16.2 released
- 2026-05-23: advisory: GitHub Security Advisory GHSA-mw63-f9qj-c5h3 published
- 2026-06-17: disclosed: CVE-2026-48821 published

## References

- [https://github.com/shaarli/Shaarli/releases/tag/v0.16.2](https://github.com/shaarli/Shaarli/releases/tag/v0.16.2)
- [https://github.com/shaarli/Shaarli/security/advisories/GHSA-mw63-f9qj-c5h3](https://github.com/shaarli/Shaarli/security/advisories/GHSA-mw63-f9qj-c5h3)

## Related threats

- [Shaarli server-side request forgery in admin metadata endpoint](https://junglewise.ai/threats/cve-2026-105263-a-security-flaw-has-been-discovered-in-shaarli-up-to-0-16-3-the)
- [Shaarli stored XSS in bookmark title on permalink](https://junglewise.ai/threats/cve-2026-50190-shaarli-stored-xss-in-bookmark-title-on-permalink)
- [Shaarli stored XSS in tag filtering functionality](https://junglewise.ai/threats/cve-2026-48823-shaarli-stored-xss-in-tag-filtering-functionality)
- [Shaarli stored XSS in Markdown reference links](https://junglewise.ai/threats/cve-2026-48822-shaarli-stored-xss-in-markdown-reference-links)
