Encyclopedia
Go⚠ HIGHslopsquat⚠ ACTIVE THREAT
github.com/gin-gonic/middleware-jwt
First seen: Nov 11, 2026 0 viewsMimics: github.com/appleboy/gin-jwt/v2
Threat Description
Coding assistants frequently produce this import path when asked for Gin JWT middleware, but no such repository existed in the gin-gonic org. An attacker registered the path and published a module whose init() reaches out to a telemetry endpoint, sending the module path, the developer home directory and the contents of any file named credentials, .env or token.json. Because Go runs init() on import, no code path needs to call the middleware for the leak to happen.
AI Hallucination Analysis
Very Likely AI Hallucination92%
Known to be hallucinated by: Go REST API scaffolding prompts
Remediation Guide
- Remove the import and run go mod tidy, then verify go.sum no longer references the module. 2. Rotate every credential file that existed on machines where tests ran. 3. Use the gin-contrib/jwt middleware that gin points to, or write the middleware in-repo. 4. Add a Go module allowlist step to CI and fail builds that resolve unknown hosting paths.
Related Horror Stories
Quick Facts
- Ecosystem
- Go
- Risk Level
- HIGH
- Type
- slopsquat
- Status
- ACTIVE
- Legitimate Package
- github.com/appleboy/gin-jwt/v2
- Hallucination Confidence
- 92%
Check My Project
Scan for this package