Advisory

GO-2025-3955

Also known as: BIT-golang-2025-47910, CVE-2025-47910

Summary

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.

Severity

Not rated by the source.

Dates

Published
2025-09-22 20:48 UTC
Modified
2026-05-15 10:59 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 1.25.0, fixed 1.25.1 (semver)

Fixed versions

1.25.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences