CVE-2021-3783:
Cross-site Scripting in yourls
6.6
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
9/20/2021
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
yourls/yourls | composer | <= 1.8.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsanitized user input in upgrade parameters. The patch adds validation through yourls_sanitize_version() and intval() casts, confirming the previous lack of input sanitization. Both the parameter handling in admin/upgrade.php and the yourls_upgrade function's parameter intake were vulnerable points where user-controlled values could enter the output without proper neutralization.