Go Vulnerability Database
GO-2025-3955
CrossOriginProtection insecure bypass patterns not limited to exact matches in net/http
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | From 1.25.0 before 1.25.1 (fixed in 1.25.1) |