# YOURLS has stored XSS in referrer statistics chart via crafted Referer header

High severity, published 2026-08-21. Update yourls/yourls to 1.10.4 or later: composer update yourls/yourls.

Canonical URL: https://buzzphp.com/security/ghsa-5h77-88j3-r659 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.2) |
| Published | 2026-08-21 |
| Updated | 2026-08-21 |
| CVE | [CVE-2026-63135](https://nvd.nist.gov/vuln/detail/CVE-2026-63135) |
| GHSA | [GHSA-5h77-88j3-r659](https://github.com/advisories/GHSA-5h77-88j3-r659) |
| Weakness | CWE-79 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| yourls/yourls | >= 1.5.1, <= 1.10.3 | 1.10.4 |

## What to do

Update yourls/yourls to 1.10.4 or later: composer update yourls/yourls.

Check which version you run with `composer show yourls/yourls`, and every affected package with `composer audit`.

## About this advisory

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



## Links

- [GHSA-5h77-88j3-r659 on GitHub](https://github.com/advisories/GHSA-5h77-88j3-r659)
- [CVE-2026-63135 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-63135)
- [All Composer security advisories](https://buzzphp.com/security)
