GO-2021-0143
Dashboard / Vulnerabilities / GO-2021-0143
GO-2021-0143
Published: 17 Feb 2022Last Modified: 13 May 2022
Summary:
Details: When 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.
References: https://go.dev/cl/252179, https://go.googlesource.com/go/+/4f5cd0c0331943c7ec72df3b827d972584f77833, https://go.dev/issue/40928, https://groups.google.com/g/golang-announce/c/8wqlSbkLdPs
Affected packages
Package
Name: net/http/cgi
Purl: pkg:golang/net/http/cgi
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.14.8
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
