GO-2025-3955

CrossOriginProtection insecure bypass patterns not limited to exact matches in net/http

At a glance

Published
Updated
CVE
CVE-2025-47910
Aliases
BIT-golang-2025-47910

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 packages

PackageVersions
Go · stdlibintroduced 1.25.0, fixed 1.25.1

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database