5.4Medium

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

Go standard library net/http Published: (1 year ago)

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.

Weakness (CWE): CWE-284

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library net/http 1.25.0 – < 1.25.1

References and patches