{"id":"CVE-2026-50190","summary":"Shaarli vulnerable to stored XSS via raw bookmark title in document \u003ctitle\u003e element on public permalink page","details":"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-\u003egetTitle()` into the `pagetitle` template variable and the RainTPL template emits it into the document `\u003ctitle\u003e` element without HTML escaping. A bookmark title containing `\u003c/title\u003e\u003cscript\u003e...\u003c/script\u003e` 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 `\u003ctitle\u003e` 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.","aliases":["GHSA-xm98-h5jj-64xv"],"modified":"2026-08-22T03:31:12.382849406Z","published":"2026-08-20T18:49:48.952Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50190.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50190.json"},{"type":"ADVISORY","url":"https://github.com/shaarli/Shaarli/security/advisories/GHSA-xm98-h5jj-64xv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50190"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/shaarli/shaarli","events":[{"introduced":"0"},{"fixed":"b197dd8624b1e979cc9198cadd027428908832f5"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.16.3"}],"source":"AFFECTED_FIELD"}}],"versions":["v0.16.2","v0.16.1","v0.16.0","v0.7.0","help","v0.8.1","v0.8.0","v0.6.5","v0.6.4","v0.6.3","v0.6.2","v0.6.1","v0.5.4","v0.5.3","0.5.3","v0.5.2","v0.5.1","v0.5.0","v0.0.45beta","v0.0.44beta","v0.0.43beta","v0.0.42beta","v0.0.41beta","v0.0.40beta"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50190.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}