# Gin Permissive CORS - ID: go-gin-permissive-cors - Severity: MEDIUM - CWE: CWE-942 (CWE-942) - Languages: Go - Frameworks: gin ## Description Wildcard CORS allows any origin to access resources. ## Detection Message Gin CORS middleware configured with wildcard origin ## Remediation Specify allowed origins instead of wildcard. ```go config := cors.DefaultConfig() config.AllowOrigins = []string{ "https://example.com", "https://app.example.com", } r.Use(cors.New(config)) ``` Learn more: https://shoulder.dev/learn/go/cwe-942/cors ## Documentation [object Object] ## Related Rules - **FastAPI CORS Misconfiguration** [MEDIUM]: - **Flask CORS Misconfiguration** [MEDIUM]: - **Chi Permissive CORS** [MEDIUM]: - **Echo Permissive CORS** [MEDIUM]: - **Fiber Permissive CORS** [MEDIUM]: