Vulnerability GHSA-6mp4-q625-mxjp
High Risk
HIGH RISK
CVSS Score: 7.1
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
9 months ago
December 30, 2025 at 07:34 PM UTC
YOURLS is vulnerable to XSS through JSONP and Callback request parameters
1.7.1 - 1.10.2
1.7.1 - 1.10.2
Summary
YOURLS is vulnerable to XSS through JSONP and Callback request parameters
Details
Summary
The callback and jsonp request parameters are directly concatenated into the response without any sanitization that allowing attackers to inject arbitrary JS code. When YOURLS_PRIVATE is set to false (public API mode), this vulnerability can be exploited by any unauthenticated attacker. In private mode, the XSS payload is still injected into the 403 response body though browser execution is blocked.
Details
Vulnerability exists in the JSONP callback handling chain:
yourls-api.php:127-128
if( isset( $_REQUEST['callback'] ) )
$return['callback'] = $_REQUEST['callback'];
elseif ( isset( $_REQUEST['jsonp'] ) )
$return['callback'] = $_REQUEST['jsonp'];
References
Related Vulnerabilities
Other vulnerabilities affecting the same packages
Medium Risk
6 hours ago
YOURLS: Unauthenticated File Inclusion
1.7.1 - 1.10.4 GHSA-f8ff-652m-j5rx
1.7.1 - 1.10.4 GHSA-f8ff-652m-j5rx
High Risk
1 month ago
YOURLS has stored XSS in referrer statistics chart via crafted Referer header
1.7.1 - 1.10.3 GHSA-5h77-88j3-r659
1.7.1 - 1.10.3 GHSA-5h77-88j3-r659
Medium Risk
4 years ago
YOURLS Stored Cross Site Scripting (XSS)
1.7.1 - 1.7.9 GHSA-pwgg-r6fq-mf94
1.7.1 - 1.7.9 GHSA-pwgg-r6fq-mf94
Low Risk
4 years ago
Cross-Site Request Forgery in YOURLS
1.7.1 - 1.8.2 GHSA-gx7g-wjxg-jwwj
1.7.1 - 1.8.2 GHSA-gx7g-wjxg-jwwj
Medium Risk
5 years ago
Cross-site Scripting in yourls
1.7.1 - 1.8.2 GHSA-cpq8-x35g-m439
1.7.1 - 1.8.2 GHSA-cpq8-x35g-m439
Impacted packages
Timeline
Published
9 months ago
December 30, 2025 at 07:34 PM UTC
Last Modified
9 months ago
December 30, 2025 at 08:06 PM UTC