{"id":"CVE-2026-48822","published":"2026-06-17T19:59:34Z","modified":"2026-06-18T15:42:42Z","title":"Shaarli has Stored Cross-Site Scripting (XSS) via Markdown Reference Links","vendor":"shaarli","product":"Shaarli","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0012,"percentile":0.01917,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/shaarli/Shaarli/security/advisories/GHSA-2hgr-63wv-x462","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/shaarli/Shaarli/releases/tag/v0.16.2","tags":["x_refsource_MISC"]}],"priority":{"score":4.4,"factors":[{"name":"EPSS percentile","points":0.38},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"shaarli","affectedVersions":[{"vendor":"shaarli","product":"Shaarli","versions":["< 0.16.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-18T15:35:27.903553Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-37791","exploited":false,"provenance":"source"}}