# CVE-2021-25994: Userfrosting - Host-Header Injection Leads to Account Takeover

- Severity: High 8.8 (CVSS:3.1, scored by Mend) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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): 1.60%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-03T06:45:10.000Z
- Modified: 2026-06-17T03:42:45.130Z
- Also known as: GHSA-cv25-3gmg-c6m8
- Weaknesses: CWE-74
- Assigned by: Mend

## Description

In Userfrosting, versions v0.3.1 to v4.6.2 are vulnerable to Host Header Injection. By luring a victim application user to click on a link, an unauthenticated attacker can use the “forgot password” functionality to reset the victim’s password and successfully take over their account.

(As written by CVE List.)

## Affected

- userfrosting userfrosting: from 0.3.1 before unspecified; from unspecified up to 4.6.2; from 0.3.1 before 4.6.3
- userfrosting/userfrosting (Packagist): from 0.3.1 before 4.6.3

## Every score

- Mend: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25994> (exploit, third-party-advisory, web)
- <https://github.com/userfrosting/UserFrosting/commit/796dd78757902435d1bd286415feea78098e45ba> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25994> (advisory)
- <https://github.com/userfrosting/UserFrosting> (package)

## Sources

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

---

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