# CVE-2021-3785: Cross-site Scripting (XSS) - Stored in yourls/yourls

- Severity: High 8.8 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-15T12:05:13.000Z
- Modified: 2026-06-17T04:05:45.533Z
- Also known as: GHSA-m9fq-c9hp-59g7
- Weaknesses: CWE-79
- Assigned by: @huntrdev

## Description

yourls is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

(As written by CVE List.)

## Affected

- yourls yourls/yourls: from unspecified before 1.8.2
- yourls/yourls (Packagist): before 1.8.2
- yourls yourls: before 1.8.2

## Every score

- @huntrdev: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://huntr.dev/bounties/b4085d13-54fa-4419-a2ce-1d780cc31638> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/yourls/yourls/commit/1d8e224ebabb8a4c75b97f026950ed710faab0ff> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3785> (advisory)
- <https://github.com/yourls/yourls> (package)

## Sources

- CVE List: [CVE-2021-3785](https://www.cve.org/CVERecord?id=CVE-2021-3785), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-m9fq-c9hp-59g7](https://github.com/advisories/GHSA-m9fq-c9hp-59g7), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-3785](https://nvd.nist.gov/vuln/detail/CVE-2021-3785), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3785 · Whole record: https://cve.day/CVE-2021-3785.json · Rebuilt by cve.day 2026-11-25T22:58:03.981Z
