{"id":"CVE-2026-48822","aliases":["CVE-2026-48822"],"related":[],"kind":"vulnerability","state":"published","title":"Shaarli has Stored Cross-Site Scripting (XSS) via Markdown Reference Links","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-06-17T19:59:34.277Z","modified":"2026-06-18T17:16:31.583Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 0.16.2","status":"affected"}],"vendor":"shaarli","product":"Shaarli","source":"cvelist"}],"references":[{"url":"https://github.com/shaarli/Shaarli/security/advisories/GHSA-2hgr-63wv-x462","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shaarli/Shaarli/releases/tag/v0.16.2","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-06-18T15:35:27.903Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48822","url":"https://www.cve.org/CVERecord?id=CVE-2026-48822","licence":"CVE Terms of Use","modified":"2026-06-18T15:42:42.133Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48822","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48822","licence":"Public domain","modified":"2026-06-18T17:16:31.583Z"}],"updatedAt":"2026-11-25T22:59:24.999Z","epss":{"score":0.0012,"percentile":0.02038,"date":"2026-12-02T12:00:21.000Z"}}