# CVE-2026-48822: Shaarli has Stored Cross-Site Scripting (XSS) via Markdown Reference Links

- 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.12%, higher than 2% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-17T19:59:34.277Z
- Modified: 2026-06-18T17:16:31.583Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Shaarli is a personal bookmarking service. Versions 0.16.1 and prior contain a stored Cross-Site Scripting (XSS) vulnerability in the Markdown-to-HTML conversion process used in the Bookmark Description field. An authenticated user can inject a malicious javascript: URI inside a Markdown link. The vulnerability originates in the filterProtocols method within BookmarkMarkdownFormatter.php.This method attempts to sanitize Markdown links by filtering dangerous protocols (such as javascript:) before rendering. It uses the following regular expression: (#]\((.*?)\)#is). This regex is designed to detect inline Markdown links, but it fails to detect Markdown reference-style links because reference-style links are resolved by the Markdown parser after preprocessing. The filterProtocols method never inspects the actual URL used in these references and as a result, an attacker can supply a javascript: URI inside a reference definition. 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-2hgr-63wv-x462> (exploit)
- <https://github.com/shaarli/Shaarli/releases/tag/v0.16.2>

## Sources

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

---

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