Description
Shaarli is a personal bookmarking service. Versions prior to 0.16.3 are vulnerable to stored XSS in `application/front/controller/visitor/BookmarkListController.php`. The `permalink` handler concatenates the raw `$bookmark->getTitle()` into the `pagetitle` template variable and the RainTPL template emits it into the document `<title>` element without HTML escaping. A bookmark title containing `</title><script>...</script>` closes the document title early and the injected script executes in the Shaarli origin for any visitor of `/shaare/{hash}`. Shaarli's metadata fetcher copies a remote page's `<title>` text verbatim into the local bookmark title, so an attacker who hosts an attacker-controlled URL and convinces an administrator to bookmark it plants the payload with no further interaction — and the resulting permalink fires for every visitor including the administrator on first save, providing a one-shot administrator account takeover. Version 0.16.3 fixes the issue.
Published: 2026-08-20
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability occurs when the bookmark title is inserted into the page <title> without escaping. An attacker can embed a payload such as </title><script>…</script> so that the script runs in the browser of any user who opens the public permalink. As the code executes under the Shaarli origin, this can lead to credential theft, session hijacking, or a complete administrator takeover.

Affected Systems

Shaarli personal bookmarking service. All releases older than 0.16.3 are vulnerable. Administrators using an older installation are affected.

Risk and Exploitability

The CVSS score is 8.6, indicating high severity. EPSS data is not available, and the CVE is not listed in the KEV catalog. Exploitation requires an attacker to get an administrator to bookmark a URL containing the malicious title, which is then stored and rendered in the public permalink. Because the payload runs automatically on first visitation, the risk is that the attack can be triggered with a single subsequent access by any visitor, including the legitimate administrator, leading to a one‑shot takeover. The attack vector is a stored web‑based XSS that can be triggered by accessing a public URL.

Generated by OpenCVE AI on August 21, 2026 at 01:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Shaarli 0.16.3 or later to fix the stored XSS vulnerability.
  • Delete or edit any bookmarked entries that contain a malicious title to prevent the injected script from executing.
  • Restrict the creation of new bookmarks to trusted administrators or disable public permalink generation if the vulnerability cannot be patched immediately.

Generated by OpenCVE AI on August 21, 2026 at 01:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Shaarli
Shaarli shaarli
Vendors & Products Shaarli
Shaarli shaarli

Thu, 20 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 20 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
Title Stored XSS via raw bookmark title in document <title> element on public permalink page Shaarli vulnerable to stored XSS via raw bookmark title in document <title> element on public permalink page

Thu, 20 Aug 2026 19:00:00 +0000

Type Values Removed Values Added
Description Shaarli is a personal bookmarking service. Versions prior to 0.16.3 are vulnerable to stored XSS in `application/front/controller/visitor/BookmarkListController.php`. The `permalink` handler concatenates the raw `$bookmark->getTitle()` into the `pagetitle` template variable and the RainTPL template emits it into the document `<title>` element without HTML escaping. A bookmark title containing `</title><script>...</script>` closes the document title early and the injected script executes in the Shaarli origin for any visitor of `/shaare/{hash}`. Shaarli's metadata fetcher copies a remote page's `<title>` text verbatim into the local bookmark title, so an attacker who hosts an attacker-controlled URL and convinces an administrator to bookmark it plants the payload with no further interaction — and the resulting permalink fires for every visitor including the administrator on first save, providing a one-shot administrator account takeover. Version 0.16.3 fixes the issue.
Title Stored XSS via raw bookmark title in document <title> element on public permalink page
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-20T19:02:02.984Z

Reserved: 2026-06-03T22:05:13.645Z

Link: CVE-2026-50190

cve-icon Vulnrichment

Updated: 2026-08-20T19:01:36.247Z

cve-icon NVD

Status : Received

Published: 2026-08-20T19:16:53.907

Modified: 2026-08-20T19:16:53.907

Link: CVE-2026-50190

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T01:30:05Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')