Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-46814— FastAPI Guard Remote Header Injection via X-Forwarded-For Manipulation

Quick assessment

Affected
rennf93 fastapi-guard
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

fastapi-guard是Renzo F个人开发者的一个FastAPI的安全库,提供中间件来控制IP、记录请求和检测渗透尝试。 fastapi-guard 2.0.0之前版本存在注入漏洞,该漏洞源于HTTP标头注入漏洞,可能绕过基于IP的访问控制。

CVSS 3.4 · Low EPSS 0.34% · P27

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-46814

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
FastAPI Guard Remote Header Injection via X-Forwarded-For Manipulation
Source: CVE Program / CVE List V5
Vulnerability Description
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 versions prior to 2.0.0. By manipulating the X-Forwarded-For header, an attacker can potentially inject arbitrary IP addresses into the request. This vulnerability can allow attackers to bypass IP-based access controls, mislead logging systems, and impersonate trusted clients. It is especially impactful when the application relies on the X-Forwarded-For header for IP-based authorization or authentication. Users should upgrade to FastAPI Guard version 2.0.0 to receive a fix.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
输出中的特殊元素转义处理不恰当(注入)
Source: CVE Program / CVE List V5
Vulnerability Title
fastapi-guard 注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
fastapi-guard是Renzo F个人开发者的一个FastAPI的安全库,提供中间件来控制IP、记录请求和检测渗透尝试。 fastapi-guard 2.0.0之前版本存在注入漏洞,该漏洞源于HTTP标头注入漏洞,可能绕过基于IP的访问控制。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
rennf93 fastapi-guard < 2.0.0 -

II. Public POCs for CVE-2025-46814

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-46814

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-46814 (1)

Vendor Advisories for CVE-2025-46814 (1)

IV. Related Vulnerabilities