GO-2021-0143
not scored yetwithdrawn / rejectedWhen a Handler does not explicitly set the Content-Type header,
the net/http/cgi and net/http/fcgi packages default to "text/html",
which can cause a Cross-Site Scripting vulnerability if an attacker
can control any part of the contents of a response.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | net/http/cgi | < 1.14.8; >= 1.15.0, < 1.15.1 | 1.14.8, 1.15.1 |
| OSV | Go | net/http/fcgi | < 1.14.8; >= 1.15.0, < 1.15.1 | 1.14.8, 1.15.1 |
References
- https://go.dev/cl/252179 · FIX
- https://go.googlesource.com/go/+/4f5cd0c0331943c7ec72df3b827d972584f77833 · FIX
- https://go.dev/issue/40928 · WEB
- https://groups.google.com/g/golang-announce/c/8wqlSbkLdPs · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Feb 2022)