ADVISORIES

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

EcosystemPackageAffected versions
Gostdlib
From 1.25.0 before 1.25.1 (fixed in 1.25.1)

References