{"id":"CVE-2026-63135","published":"2026-08-21T20:40:08Z","modified":"2026-08-26T17:40:42Z","title":"YOURLS: Stored XSS in referrer statistics chart via crafted Referer header","vendor":"YOURLS","product":"YOURLS","tier":"tail","description":{"text":"YOURLS is a self-hosted, customizable URL shortener written in PHP. From 1.5.1 until 1.10.4, YOURLS stores the HTTP Referer header through yourls_get_referrer(), yourls_sanitize_url_safe(), and yourls_log_redirect(), then aggregates the value in yourls-infos.php and passes the derived domain through yourls_get_domain(), yourls_stats_pie(), and yourls_google_array_to_data_table(). The chart builder concatenates labels into inline JavaScript without JavaScript-string escaping, so an unauthenticated attacker can poison the statistics of an existing short URL with a crafted referrer. When an administrator or public stats-page viewer opens the affected statistics page, attacker-controlled JavaScript executes in the YOURLS origin and can access admin-visible data, the API signature token, and privileged same-origin actions. This issue is fixed in version 1.10.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00425,"percentile":0.37674,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/YOURLS/YOURLS/security/advisories/GHSA-5h77-88j3-r659","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/YOURLS/YOURLS/pull/4107","tags":["x_refsource_MISC"]},{"url":"https://github.com/YOURLS/YOURLS/commit/e1e93476655107e6caab34e52259eb1c91079ec7","tags":["x_refsource_MISC"]},{"url":"https://github.com/YOURLS/YOURLS/releases/tag/1.10.4","tags":["x_refsource_MISC"]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":7.53},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"yourls","affectedVersions":[{"vendor":"YOURLS","product":"YOURLS","versions":[">= 1.5.1, < 1.10.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-26T17:40:19.146156Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"yourls/yourls","vulnerableRanges":[">=1.5.1, <1.10.4"],"patched":["1.10.4"],"from":["GHSA-5h77-88j3-r659"],"provenance":"source"}],"summary":{"text":"In YOURLS, the statistics chart builder (in yourls-infos.php and its helper functions) stores referrer data from the HTTP Referer header and places the derived domain into inline JavaScript without JavaScript-string escaping, creating a stored cross-site scripting flaw in versions 1.5.1 through 1.10.4. An unauthenticated remote attacker who can send crafted requests to an existing short URL can poison its statistics, and the injected script then runs in the YOURLS origin when an administrator or a viewer of the public stats page opens that page, requiring user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:09Z"},"euvd":{"id":"EUVD-2026-64149","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-14537","published":"2019-08-07","fixed":"1.7.4","kev":false},{"cve":"CVE-2020-27388","published":"2020-10-23","fixed":"1.8","kev":false},{"cve":"CVE-2021-3785","published":"2021-09-15","fixed":"1.8.2","kev":false},{"cve":"CVE-2026-63135","published":"2026-08-21","fixed":"1.10.4","kev":false},{"cve":"CVE-2026-62858","published":"2026-10-14","fixed":"1.10.5","kev":false,"link":{"from":"CVE-2026-63135","to":"CVE-2026-62858","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:yourls/yourls","fromFixed":"1.10.4","toFixed":"1.10.5","daysApart":54}]}}],"package":"Packagist:yourls/yourls"}}