Go Standard Library Net Http vulnerabilities
24 known vulnerabilities affecting go_standard_library/net_http.
Total CVEs
24
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
CRITICAL2HIGH12MEDIUM10
Vulnerabilities
Page 1 of 2
CVE-2023-45288P2HIGHCVSS 7.5fixed in 1.21.9≥ 1.22.0-0, < 1.22.22024-04-04
CVE-2023-45288 [HIGH] CVE-2023-45288: An attacker may cause an HTTP/2 endpoint to read arbitrary amounts of header data by sending an exce
An attacker may cause an HTTP/2 endpoint to read arbitrary amounts of header data by sending an excessive number of CONTINUATION frames. Maintaining HPACK state requires parsing and processing all HEADERS and CONTINUATION frames on a connection. When a request's headers exceed MaxHeaderBytes, no memory is allocated to store the excess headers, but they are st
nvd
CVE-2026-39821P2CRITICALCVSS 9.6fixed in 1.25.13≥ 1.26.0-0, < 1.26.6+1 more2026-05-22
CVE-2026-39821 [CRITICAL] CWE-1289 CVE-2026-39821: The ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that decode to an ASC
The ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that decode to an ASCII-only label. For example, ToUnicode("xn--example-.com") incorrectly returns the name "example.com" rather than an error. This behavior can lead to privilege escalation in programs using the idna package. For example, a program which performs priv
nvd
CVE-2026-78663P3CRITICALCVSS 9.1fixed in 1.26.92026-10-08
CVE-2026-78663 [CRITICAL] CWE-675 CVE-2026-78663: The HTTP/2 server can refund connection-level flow control twice for the same data: Once when a clie
The HTTP/2 server can refund connection-level flow control twice for the same data: Once when a client resets a stream (refunding data for any sent-but-unread portion of the stream), and again when a request handler reads the buffered data. A malicious client can exploit this to bypass the configured connection-level flow control limit (MaxReceive
nvd
CVE-2026-56866P3HIGHCVSS 7.5fixed in 1.26.9≥ 1.27.0-0, < 1.27.22026-10-08
CVE-2026-56866 [HIGH] CWE-444 CVE-2026-56866: When http.Transport sends an HTTP/1 CONNECT request with a non-empty Request.Body, it writes the bod
When http.Transport sends an HTTP/1 CONNECT request with a non-empty Request.Body, it writes the body directly to the connection without framing after the request headers. If the server rejects the CONNECT request with a non-2xx keep-alive response, Transport returns the connection to the idle pool. Because CONNECT requests do not have a request body,
nvd
CVE-2022-41720P3HIGHCVSS 7.5fixed in 1.18.9≥ 1.19.0-0, < 1.19.42022-12-07
CVE-2022-41720 [HIGH] CWE-22 CVE-2022-41720: On Windows, restricted files can be accessed via os.DirFS and http.Dir. The os.DirFS function and ht
On Windows, restricted files can be accessed via os.DirFS and http.Dir. The os.DirFS function and http.Dir type provide access to a tree of files rooted at a given directory. These functions permit access to Windows device files under that root. For example, os.DirFS("C:/tmp").Open("COM1") opens the COM1 device. Both os.DirFS and http.Dir only provide
nvd
CVE-2026-78659P3HIGHCVSS 7.5fixed in 1.26.92026-10-08
CVE-2026-78659 [HIGH] CWE-405 CVE-2026-78659: When "Trailer" headers are sent by a client, the HTTP server internally uses the header values to po
When "Trailer" headers are sent by a client, the HTTP server internally uses the header values to populate the Request.Trailer map passed to the server handler. Because Request.Trailer is a map, each entry incurs memory overhead. For HTTP/2 servers, a malicious client can exploit this by sending a "Trailer" header that declares a large number of field
nvd
CVE-2026-94439P3HIGHCVSS 7.5fixed in 1.26.9≥ 1.27.0-0, < 1.27.22026-10-08
CVE-2026-94439 [HIGH] CWE-444 CVE-2026-94439: When an HTTP server handler sends a 2xx response to an HTTP/1 CONNECT request and returns without hi
When an HTTP server handler sends a 2xx response to an HTTP/1 CONNECT request and returns without hijacking the connection, the server improperly continues to read and serve requests from the connection. Since a 2xx response to an HTTP/1 CONNECT converts the connection into a tunnel, the server should not treat the connection as continuing to contain
nvd
CVE-2024-24791P3HIGHCVSS 7.5fixed in 1.21.12≥ 1.22.0-0, < 1.22.52024-07-02
CVE-2024-24791 [HIGH] CVE-2024-24791: The net/http HTTP/1.1 client mishandled the case where a server responds to a request with an "Expec
The net/http HTTP/1.1 client mishandled the case where a server responds to a request with an "Expect: 100-continue" header with a non-informational (200 or higher) status. This mishandling could leave a client connection in an invalid state, where the next request sent on the connection will fail. An attacker sending a request to a net/http/httputil.ReverseP
nvd
CVE-2026-33814P3HIGHCVSS 7.5fixed in 1.25.10≥ 1.26.0-0, < 1.26.32026-05-07
CVE-2026-33814 [HIGH] CWE-835 CVE-2026-33814: When processing HTTP/2 SETTINGS frames, transport will enter an infinite loop of writing CONTINUATIO
When processing HTTP/2 SETTINGS frames, transport will enter an infinite loop of writing CONTINUATION frames if it receives a SETTINGS_MAX_FRAME_SIZE with a value of 0.
nvd
CVE-2026-78669P3HIGHCVSS 7.5fixed in 1.26.92026-10-08
CVE-2026-78669 [HIGH] CWE-405 CVE-2026-78669: A malicious HTTP/2 peer can cause excessive CPU consumption in the client or server by opening a lar
A malicious HTTP/2 peer can cause excessive CPU consumption in the client or server by opening a large number of streams and then sending many small SETTINGS frames containing SETTINGS_INITIAL_WINDOW_SIZE values.
nvd
CVE-2026-56853P3HIGHCVSS 7.5fixed in 1.25.13≥ 1.26.0-0, < 1.26.6+1 more2026-08-13
CVE-2026-56853 [HIGH] CWE-770 CVE-2026-56853: When a server is configured to support unencrypted HTTP/2, it reads a few bytes from each new connec
When a server is configured to support unencrypted HTTP/2, it reads a few bytes from each new connection to see if they contain the HTTP/2 client preface. ReadHeaderTimeout is unexpectedly not being applied when doing this.
nvd
CVE-2026-78660P3HIGHCVSS 7.5fixed in 1.26.92026-10-08
CVE-2026-78660 [HIGH] CWE-444 CVE-2026-78660: Historically, we have been rather lax about malformed framing-related headers in our HTTP/2 implemen
Historically, we have been rather lax about malformed framing-related headers in our HTTP/2 implementation, as they cannot interfere with HTTP/2 framing. However, this makes it possible for our HTTP/2 implementation to forward responses containing such headers to an HTTP/1 client when acting as a reverse proxy. If the HTTP/1 client also does not behav
nvd
CVE-2026-97032P3HIGHCVSS 7.5fixed in 1.26.92026-10-08
CVE-2026-97032 [HIGH] CWE-362 CVE-2026-97032: HTTP/2 servers could end up crashing due to inadvertently modifying its HPACK encoder concurrently.
HTTP/2 servers could end up crashing due to inadvertently modifying its HPACK encoder concurrently. This happens because the server modifies the HPACK encoder from two goroutines without synchronization: one uses the encoder to encode a HEADERS frame as part of a response sent to a client and the other modifies the encoder's table size when handling a
nvd
CVE-2026-78667P3HIGHCVSS 7.5fixed in 1.26.9≥ 1.27.0-0, < 1.27.22026-10-08
CVE-2026-78667 [HIGH] CWE-770 CVE-2026-78667: When parsing a Range header containing a large number of small ranges, FileServer(FS), ServeContent,
When parsing a Range header containing a large number of small ranges, FileServer(FS), ServeContent, and ServeFile(FS) can consume an excessive amount of CPU.
nvd
CVE-2022-41717P3MEDIUMCVSS 5.3fixed in 1.18.9≥ 1.19.0-0, < 1.19.42022-12-08
CVE-2022-41717 [MEDIUM] CWE-770 CVE-2022-41717: An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests. HTTP/2 serve
An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests. HTTP/2 server connections contain a cache of HTTP header keys sent by the client. While the total number of entries in this cache is capped, an attacker sending very large keys can cause the server to allocate approximately 64 MiB per open connection.
nvd
CVE-2022-1705P3MEDIUMCVSS 6.5fixed in 1.17.12≥ 1.18.0-0, < 1.18.42022-08-10
CVE-2022-1705 [MEDIUM] CWE-444 CVE-2022-1705: Acceptance of some invalid Transfer-Encoding headers in the HTTP/1 client in net/http before Go 1.17
Acceptance of some invalid Transfer-Encoding headers in the HTTP/1 client in net/http before Go 1.17.12 and Go 1.18.4 allows HTTP request smuggling if combined with an intermediate server that also improperly fails to reject the header as invalid.
nvd
CVE-2022-32148P3MEDIUMCVSS 6.5fixed in 1.17.12≥ 1.18.0-0, < 1.18.42022-08-10
CVE-2022-32148 [MEDIUM] CVE-2022-32148: Improper exposure of client IP addresses in net/http before Go 1.17.12 and Go 1.18.4 can be triggere
Improper exposure of client IP addresses in net/http before Go 1.17.12 and Go 1.18.4 can be triggered by calling httputil.ReverseProxy.ServeHTTP with a Request.Header map containing a nil value for the X-Forwarded-For header, which causes ReverseProxy to set the client IP as the value of the X-Forwarded-For header.
nvd
CVE-2023-29406P4MEDIUMCVSS 6.5fixed in 1.19.11≥ 1.20.0-0, < 1.20.62023-07-11
CVE-2023-29406 [MEDIUM] CWE-436 CVE-2023-29406: The HTTP/1 client does not fully validate the contents of the Host header. A maliciously crafted Hos
The HTTP/1 client does not fully validate the contents of the Host header. A maliciously crafted Host header can inject additional headers or entire requests. With fix, the HTTP/1 client now refuses to send requests containing an invalid Request.Host or Request.URL.Host value.
nvd
CVE-2025-4673P4MEDIUMCVSS 6.8fixed in 1.23.10≥ 1.24.0-0, < 1.24.42025-06-11
CVE-2025-4673 [MEDIUM] CVE-2025-4673: Proxy-Authorization and Proxy-Authenticate headers persisted on cross-origin redirects potentially l
Proxy-Authorization and Proxy-Authenticate headers persisted on cross-origin redirects potentially leaking sensitive information.
nvd
CVE-2025-47910P4MEDIUMCVSS 5.4≥ 1.25.0, < 1.25.12025-09-22
CVE-2025-47910 [MEDIUM] CVE-2025-47910: When using http.CrossOriginProtection, the AddInsecureBypassPattern method can unexpectedly bypass m
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.
nvd
1 / 2Next →