CVE-2026-50190

Shaarli vulnerable to stored XSS via raw bookmark title in document <title> element on public permalink page

Published Aug 20, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Shaarli
Shaarli shaarli
Vendors & Products Shaarli
Shaarli shaarli
Type Values Removed Values Added
Metrics ssvc

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

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
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 20, 2026, 7:02 PM
Reserved
Jun 3, 2026, 10:05 PM
Status
Deferred
Published
Aug 20, 2026, 7:16 PM
Modified
Oct 26, 2026, 10:10 AM