What’s Vulnerable › Vulnerabilities

CVE-2025-47910: CrossOriginProtection insecure bypass patterns not limited to exact matches in net/http

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.

Affected products

How to fix

Upgrade to a fixed version: Go standard library net/http 1.25.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-47910 or the next vulnerability affects your stack