{"id":"CVE-2020-24553","aliases":["CVE-2020-24553","GO-2021-0226","BIT-GOLANG-2020-24553"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site scripting in net/http/cgi and net/http/fcgi","summary":"Go before 1.14.8 and 1.15.x before 1.15.1 allows XSS because text/html is the default for CGI/FCGI handlers that lack a Content-Type header.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Go before 1.14.8 and 1.15.x before 1.15.1 allows XSS because text/html is the default for CGI/FCGI handlers that lack a Content-Type header.","source":"cvelist"},{"lang":"en","text":"When a Handler does not explicitly set the Content-Type header, the the package would default to “text/html”, which could cause a Cross-Site Scripting vulnerability if an attacker can control any part of the contents of a response.\n\nThe Content-Type header is now set based on the contents of the first Write using http.DetectContentType, which is consistent with the behavior of the net/http package.\n\nAlthough this protects some applications that validate the contents of uploaded files, not setting the Content-Type header explicitly on any attacker-controlled file is unsafe and should be avoided.","format":"markdown","source":"go"},{"lang":"es","text":"Go versiones anteriores a 1.14.8 y versiones 1.15.x anteriores a 1.15.1, permite un ataque de tipo XSS porque text/html es el predeterminado para los manejadores de CGI/FCGI que carecen de un encabezado Content-Type","source":"nvd"}],"published":"2020-09-02T16:25:52.000Z","modified":"2026-09-08T08:47:46.897Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.14.8"},{"type":"semver","introduced":"1.15.0-0","status":"affected","fixed":"1.15.1"}],"ecosystem":"Go","package":"stdlib","purl":"pkg:golang/stdlib","source":"go"},{"ranges":[{"status":"affected","fixed":"1.14.8"},{"status":"affected","introduced":"1.15.0","fixed":"1.15.1"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"15.1"},{"status":"affected","version":"15.2"}],"vendor":"opensuse","product":"leap","cpe":"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.5.0"}],"vendor":"oracle","product":"communications_cloud_native_core_policy","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.5.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.14.8"},{"type":"semver","introduced":"1.15.0","status":"affected","fixed":"1.15.1"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"http://seclists.org/fulldisclosure/2020/Sep/5","tags":["advisory","exploit","mailing-list","third-party-advisory","x-refsource-fulldisc","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CZBO7Q73GGWBVYIKNH2HNN44Q5IQND5W/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00000.html","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","x-refsource-suse","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00002.html","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","x-refsource-suse","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","tags":["advisory","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://groups.google.com/forum/#%21topic/golang-announce/8wqlSbkLdPs","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://packetstormsecurity.com/files/159049/Go-CGI-FastCGI-Transport-Cross-Site-Scripting.html","tags":["advisory","exploit","third-party-advisory","vdb-entry","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20200924-0003/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["advisory","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.redteam-pentesting.de/advisories/rt-sa-2020-004","tags":["advisory","exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://go.dev/cl/252179","tags":["fix"],"sources":["go"]},{"url":"https://go.googlesource.com/go/+/4f5cd0c0331943c7ec72df3b827d972584f77833","tags":["fix"],"sources":["go"]},{"url":"https://groups.google.com/g/golang-announce/c/8wqlSbkLdPs","tags":["web"],"sources":["go"]},{"url":"https://go.dev/issue/40928","tags":["report"],"sources":["go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-24553","tags":["web"],"sources":["bitnami"]}],"credits":["RedTeam Pentesting GmbH"],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-24553","url":"https://www.cve.org/CVERecord?id=CVE-2020-24553","licence":"CVE Terms of Use","modified":"2024-08-04T15:12:09.157Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0226","url":"https://pkg.go.dev/vuln/GO-2021-0226","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-24553","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-24553","licence":"Public domain","modified":"2026-06-17T03:05:45.057Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2020-24553","url":"https://osv.dev/vulnerability/BIT-GOLANG-2020-24553","licence":"Apache-2.0","modified":"2026-09-08T08:47:46.897Z"}],"updatedAt":"2026-11-25T22:57:54.485Z","epss":{"score":0.03646,"percentile":0.89875,"date":"2026-12-01T12:00:22.000Z"}}