YOURLS has stored XSS in referrer statistics chart via crafted Referer header
High severity. Published 21 August 2026. Update yourls/yourls to 1.10.4 or later: composer update yourls/yourls.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| yourls/yourls (opens in a new tab) | >= 1.5.1, <= 1.10.3 | 1.10.4 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show yourls/yourls
composer auditAdvisory details
| Severity | HighCVSS 8.2 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-63135 (opens in a new tab) |
| GHSA | GHSA-5h77-88j3-r659 (opens in a new tab) |
| Weakness | CWE-79 |
What the advisory says
Summary
YOURLS stores the HTTP Referer header for short URL redirects and later renders aggregated referrer domains in the per-link statistics page. An unauthenticated attacker can send a crafted Referer header to any existing short URL. When an authenticated administrator or stats-page viewer opens that short URL's statistics page, the crafted referrer is embedded into Google Charts JavaScript without JavaScript-string escaping, causing stored cross-site scripting.
This is reachable in default private installations when authenticated users view stats, and in documented configurations where YOURLSPRIVATEINFOS is set to false to make statistics pages public.
Details
Source: GHSA-5h77-88j3-r659 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- YOURLS: Unauthenticated File Inclusion (opens in a new tab) (medium, 15 October 2026)