UNKNOWN Go
CrossOriginProtection insecure bypass patterns not limited to exact matches in net/http
GO-2025-3955 · BIT-golang-2025-47910 · CVE-2025-47910
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
When using http.CrossOriginProtection, the AddInsecureBypassPattern method can unexpectedly bypass more requests than intended. CrossOriginProtection then skips validation, but forwards the original request path, which may be served by a different handler without the intended security protections.
Ready to move
Start Securing
Free, no credit card | First findings in minutes