GO-2025-3955

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

En bref

Publiée
Mise à jour
CVE
CVE-2025-47910
Alias
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.

Paquets affectés

PaquetVersions
Go · stdlibintroduced 1.25.0, fixed 1.25.1

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database