Medium severity · published Jun 17, 2026
CVE-2026-48822
Shaarli has Stored Cross-Site Scripting (XSS) via Markdown Reference Links
5.8
CVSS
0.1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
Attack vector
Local
Complexity
Low
Privileges
High
User interaction
Required
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.1% · higher than 2% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SH
Shaarli · shaarli
< 0.16.2 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-48822
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-48822
github.com
https://github.com/shaarli/Shaarli/releases/tag/v0.16.2
github.com
https://github.com/shaarli/Shaarli/security/advisories/GHSA-2hgr-63wv-x462
More from Shaarli
8.6
CVE-2026-50190
Shaarli vulnerable to stored XSS via raw bookmark title in document <title> element on public permalink page
5.8
CVE-2026-48821
Shaarli: DOM-based Cross-Site Scripting (XSS) in Thumbnail Synchronizer
5.4
CVE-2026-24476
Shaarli vulnerable to stored XSS via Suggested Tags
4.8
CVE-2026-48823
Shaarli has Stored Cross-Site Scripting (XSS) via Tags Search
4.7
CVE-2026-105263
Shaarli Admin Metadata Endpoint MetadataController.php MetadataController server-side request forgery
