CVE-2026-48822 Details
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.
A stored Cross-Site Scripting (XSS) vulnerability has been identified in Shaarli, a personal bookmarking service, in versions through 0.16.1. The issue arises in the Markdown-to-HTML conversion for the Bookmark Description field, where an authenticated user can inject a malicious 'javascript:' URI into a Markdown link. This vulnerability is rooted in the 'filterProtocols' method of 'BookmarkMarkdownFormatter.php', which inadequately sanitizes Markdown links by only targeting inline links. Consequently, an attacker can exploit reference-style links, embedding harmful JavaScript that executes when the link is clicked on the homepage.
Users can update to Shaarli version 0.16.2 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 17, 2026CISA-ADP
Assessed Jun 18, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/shaarli/Shaarli/security/advisories/GHSA-2hgr-63wv-x462 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/shaarli/Shaarli/releases/tag/v0.16.2 | [email protected] | Release NotesVendor |
| https://github.com/shaarli/Shaarli/security/advisories/GHSA-2hgr-63wv-x462 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Shaarli | <= 0.16.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 18, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | New CVE Received | [email protected] |
Volerion