# FastAPI Guard is a security library for FastAPI that provides middleware to control IPs, log requests, and detect penetration attempts. An HTTP header injection vulnerability has been identified in...

Advisory record · `GHSA-77q8-qmj7-x7pp`

- **Identifiers:** `GHSA-77q8-qmj7-x7pp` · `CVE-2025-46814` · `PYSEC-2025-242`
- **State:** Confirmed
- **Severity:** CVSS 3.4 Low
- **Critical:** No
- **Weakness (CWE):** [CWE-74](https://cwe.mitre.org/data/definitions/74.html)
- **Tags:** [Other injection](https://agentprime.io/advisories/tag/injection.md)
- **Published:** 6 May 2025
- **Updated:** 13 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 6 May 2025, 15:16 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `fastapi-guard` (PyPI): affected `<2.0.0`; fixed in `2.0.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> fastapi-guard versions before 2.0.0 contain an HTTP header injection flaw in how the X-Forwarded-For header is handled. An attacker who can send requests to the application can manipulate that header to inject arbitrary IP addresses, which may bypass IP-based access controls, mislead logs, or impersonate trusted clients. Upgrade to fastapi-guard 2.0.0 or later.

Written 6 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 3.4 Low, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0034, the 28th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:04 UTC: First seen by agentprime
- 31 Oct 2026, 15:04 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/PYSEC-2025-242)

## Sources

- [GitHub Advisory Database: GHSA-77q8-qmj7-x7pp](https://github.com/advisories/GHSA-77q8-qmj7-x7pp)
- [OSV: GHSA-77q8-qmj7-x7pp](https://osv.dev/vulnerability/GHSA-77q8-qmj7-x7pp)
- <https://github.com/rennf93/fastapi-guard/commit/0b003fda4c678c1b514e95f319aee88113e9bf4b>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-77q8-qmj7-x7pp>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-77q8-qmj7-x7pp/>. Everything for agents: <https://agentprime.io/llms.txt>.
