CVE catalog

CVE-2026-48822

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 Descripti

[CVE catalog]

Severity
Medium · CVSS 5.8
Published
Source
[NVD] · [CVE record]
EPSS
0.12% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianshaarlisid0.16.1+dfsg-1vulnerable
Debianshaarlitrixie0.14.0+dfsg-2+deb13u1vulnerable
Debianshaarlitrixie-security0.14.0+dfsg-2+deb13u1vulnerable
Debianshaarlibookworm0.12.1+dfsg-8+deb12u2vulnerable
Debianshaarlibookworm-security0.12.1+dfsg-8+deb12u2vulnerable
CpeshaarliNot reportedNot reportedvulnerable
Ubuntushaarli16.040.0.42~beta~dfsg1-2vulnerable
Ubuntushaarli16.040.0.42~beta~dfsg1-2ubuntu1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianshaarlisourcesid(unfixed)not yet assignedNot reported[1140346]
Debianshaarlisourcetrixie(unfixed)not yet assignedNot reported[1140346]
Debianshaarlisourcebookworm(unfixed)not yet assignedNot reported[1140346]

[Debian bug #1140346]

Notes

[bookworm] shaarli: Minor issue, XSS

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [shaarli]Affected
    Details (4)
    • 0.12.1+dfsg-8+deb12u2 · all · bookworm

      Affected

      nvd · shaarli · debian · bookworm; nvd · shaarli · debian · 12

    • 0.12.1+dfsg-8+deb12u2 · all · bookworm

      Affected

      nvd · shaarli · debian · bookworm; nvd · shaarli · debian · 12

    • 0.12.1+dfsg-8+deb12u2 · all · bookworm-security

      Affected

      nvd · shaarli · debian · bookworm; nvd · shaarli · debian · 12

    • 0.12.1+dfsg-8+deb12u2 · all · bookworm-security

      Affected

      nvd · shaarli · debian · bookworm; nvd · shaarli · debian · 12

[Debian 13 (Trixie)]

  • [shaarli]Affected
    Details (4)
    • 0.14.0+dfsg-2+deb13u1 · all · trixie

      Affected

      nvd · shaarli · debian · 13

    • 0.14.0+dfsg-2+deb13u1 · all · trixie

      Affected

      nvd · shaarli · debian · 13

    • 0.14.0+dfsg-2+deb13u1 · all · trixie-security

      Affected

      nvd · shaarli · debian · 13

    • 0.14.0+dfsg-2+deb13u1 · all · trixie-security

      Affected

      nvd · shaarli · debian · 13

Observed:

References