Encyclopedia
PyPI☠ CRITICALphantom⚠ ACTIVE THREAT

fastapi-jwt-guard

First seen: Oct 27, 2026 61 viewsMimics: fastapi-security
Share threatHN
Threat Description

A decorator that appears to enforce bearer-token checks but returns `True` whenever any token is present, valid or not — a silent authentication bypass. It simultaneously logs the decoded claims of every request (`sub`, `email`, `roles`) to a remote sink. Tests that only use valid tokens will pass. A single request carrying `Bearer test` exposes it.

AI Hallucination Analysis
Very Likely AI Hallucination90%
Known to be hallucinated by: ChatGPT, Claude, Cursor
Remediation Guide
  1. Remove the package immediately and restore explicit token verification.
  2. Test every protected route with a malformed token and assert a 401.
  3. Assume all identity claims seen during the exposure window are disclosed.
Quick Facts
Ecosystem
PyPI
Risk Level
CRITICAL
Type
phantom
Status
ACTIVE
Legitimate Package
fastapi-security
Hallucination Confidence
90%
Check My Project
Scan for this package