CVE-2026-50190
JSON

8.6high

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

Severity
8.6high CVSS:4.0 by GitHub_M
Exploit likelihood
0.32% (higher than 27% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
shaarli Shaarli< 0.16.3CVE List

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Shaarli es un servicio personal de marcadores. Versiones anteriores a la 0.16.3 son vulnerables a XSS almacenado en ’application/front/controller/visitor/BookmarkListController.php’. El gestor ’permalink’ concatena el ’$bookmark -> getTitle()’ en bruto en la variable de plantilla ’pagetitle’ y la plantilla RainTPL lo emite en el elemento ’[title]’ del documento sin escape HTML. Un título de marcador que contiene ’[/title][script_tag]...[/script]’ cierra el título del documento prematuramente y el script inyectado se ejecuta en el origen de Shaarli para cualquier visitante de ’/shaare/{hash}’. El capturador de metadatos de Shaarli copia el texto ’[title]’ de una página remota textualmente en el título del marcador local, por lo que un atacante que aloja una URL controlada por el atacante y convence a un administrador para que la marque, implanta la carga útil sin interacción adicional - y el permalink resultante se activa para cada visitante, incluido el administrador, en el primer guardado, proporcionando una toma de control de cuenta de administrador de un solo uso. La versión 0.16.3 corrige el problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-50190 changed 2026-08-20CVE Terms of Use
NVDCVE-2026-50190 changed 2026-10-26Public domain