# CVE-2026-48821: Shaarli: DOM-based Cross-Site Scripting (XSS) in Thumbnail Synchronizer

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-17T20:33:31.230Z
- Modified: 2026-06-23T15:44:39.343Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Shaarli is a personal bookmarking service. Versions 0.16.1 and prior contain a DOM-based Cross-Site Scripting (XSS) vulnerability in the Thumbnail Synchronizer feature. When an administrator runs the thumbnail update process, malicious bookmark titles are returned via an AJAX response and inserted into the DOM using innerHTML without proper sanitization. The issue originates from the interaction between the backend thumbnail update endpoint and the frontend JavaScript responsible for rendering update progress. On the backend, the ThumbnailsController::ajaxUpdate method returns bookmark data formatted using the 'raw' formatter. This includes the unescaped bookmark title in the JSON response. On the client side, the script thumbnails-update.js processes this AJAX response and dynamically updates the progress interface. Administrators using the thumbnail synchronization feature are affected and exploitation could lead to session hijacking, privilege escalation, backdoor injection and full compromise. This issue has been fixed in version 0.16.2.

(As written by CVE List.)

## Affected

- shaarli Shaarli: < 0.16.2

## References

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

## Sources

- CVE List: [CVE-2026-48821](https://www.cve.org/CVERecord?id=CVE-2026-48821), CVE Terms of Use, modified 2026-06-18
- NVD: [CVE-2026-48821](https://nvd.nist.gov/vuln/detail/CVE-2026-48821), Public domain, modified 2026-06-23

---

Page: https://cve.day/CVE-2026-48821 · Whole record: https://cve.day/CVE-2026-48821.json · Rebuilt by cve.day 2026-11-25T22:59:25.002Z
