<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>YOURLS (&gt;= 1.5.1, &lt;= 1.10.3) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/yourls--1.5.1--1.10.3/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sat, 22 Aug 2026 01:17:10 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/yourls--1.5.1--1.10.3/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Stored XSS in YOURLS via Referer Header</title><link>https://feed.craftedsignal.io/briefs/2026-08-yourls-xss/</link><pubDate>Sat, 22 Aug 2026 01:17:10 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-yourls-xss/</guid><description>The YOURLS URL shortener is vulnerable to stored cross-site scripting (XSS) via the Referer header, allowing unauthenticated attackers to execute arbitrary JavaScript in an administrator's browser context.</description><content:encoded><![CDATA[<p>YOURLS versions 1.5.1 through 1.10.3 are vulnerable to stored cross-site scripting (XSS) resulting from improper sanitization of the HTTP 'Referer' header. An unauthenticated attacker can supply a malicious 'Referer' header to a short URL, which is subsequently logged by the application. When an administrator or authorized user views the statistics page for that short URL, the malicious payload is embedded into Google Charts JavaScript without proper escaping of string metacharacters. This vulnerability is reachable in default private installations when statistics are viewed by an authenticated user, as well as in installations with the 'YOURLS_PRIVATE_INFOS' configuration set to 'false'. Successful exploitation allows for the execution of arbitrary JavaScript within the origin of the YOURLS administration panel, potentially leading to unauthorized administrative actions and sensitive information disclosure.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An unauthenticated attacker crafts an HTTP request containing a malicious 'Referer' header (e.g., &quot;http://x',1],['marker',alert(1)],['z.tld/path&quot;).</li>
<li>The attacker triggers a request for an existing short URL on the target YOURLS instance using the crafted 'Referer' header.</li>
<li>The <code>yourls_log_redirect</code> function processes the request and stores the unsanitized (but truncated) 'Referer' header in the application's database.</li>
<li>An authenticated administrator navigates to the statistics page (e.g., <code>&lt;keyword&gt;+</code>) for the targeted short URL.</li>
<li>The application extracts the domain from the logged referrers and passes it to <code>yourls_stats_pie</code>.</li>
<li>The <code>yourls_google_array_to_data_table</code> function concatenates the malicious referrer domain directly into the Google Charts JavaScript array without sanitization.</li>
<li>The administrator's browser executes the injected JavaScript payload within the session context.</li>
<li>The attacker uses the privileged session to perform actions such as creating/deleting links, modifying destinations, or stealing API tokens.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in arbitrary JavaScript execution within the authenticated session of a YOURLS administrator. An attacker can use this access to perform privileged actions, including modifying or deleting existing short-link destinations to facilitate phishing or malware distribution, and accessing sensitive administrative tools. Furthermore, the XSS can be used to extract the administrative API signature token from <code>/admin/tools.php</code>, allowing for persistent, passwordless API access to the YOURLS instance until the secret is rotated.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritize upgrading all YOURLS instances to a patched version that correctly escapes JavaScript string metacharacters in the statistics generation logic. Until an upgrade can be performed, monitor web server logs for suspicious 'Referer' headers containing characters indicative of XSS attempts, such as single quotes, square brackets, or parentheses. If logs reveal evidence of attempted exploitation, rotate administrative API tokens immediately and audit the current short-link inventory for unauthorized modifications.</p>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>xss</category><category>web-vulnerability</category><category>stored-xss</category><category>cve-2026-63135</category></item></channel></rss>