CVE-2021-33194 — Vulnerability in golang.org/x/net — CVE Details
golang.org/x/net/html Infinite Loop vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (7.49%). Schedule for your next planned update.
Does your project use an affected golang.org/x/net version?
Paste your go.sum to check it for CVE-2021-33194 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Go through 1.15.12 and 1.16.x through 1.16.4 has a golang.org/x/net/html infinite loop via crafted ParseFragment input.
Advisory Timeline
- First published May 24, 2022 (1647 days ago).
- Last revised September 10, 2026 — 1569 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get golang.org/x/net@v0.0.0-20210520170846-37e1c6afe023
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| golang.org/x/net Go · Affected: All versions | 0.0.0-20210520170846-37e1c6afe023 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-835
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-33194ADVISORY
- https://github.com/golang/net/commit/37e1c6afe02340126705deced573a85ab75209d7WEB
- https://go.dev/cl/311090WEB
- https://go.dev/issue/46288WEB
- https://go.googlesource.com/net/+/37e1c6afe02340126705deced573a85ab75209d7WEB
- https://groups.google.com/g/golang-announce/c/wPunbCPkWUgWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4CHKSFMHZVOBCZSSVRE3UEYNKARTBMTMWEB
- https://pkg.go.dev/vuln/GO-2021-0238WEB
Frequently Asked Questions
- What is CVE-2021-33194?
- golang.org/x/net/html Infinite Loop vulnerability. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2021-33194?
- CVE-2021-33194 affects golang.org/x/net. It has a 7.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-33194 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top 5% of EPSS-scored vulnerabilities — 95.2% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2022-41723
Denial of service via crafted HTTP/2 stream in net/http and golang.org/x/net
- CVE-2023-3978
Improper rendering of text nodes in golang.org/x/net/html
- CVE-2023-39325
HTTP/2 rapid reset can cause excessive work in net/http
- CVE-2023-45288
HTTP/2 CONTINUATION flood in net/http
- CVE-2024-45338
Non-linear parsing of case-insensitive content in golang.org/x/net/html
- CVE-2025-22870
HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net
- CVE-2025-22872
Incorrect Neutralization of Input During Web Page Generation in x/net in golang.org/x/net
- CVE-2025-47911
Quadratic parsing complexity in golang.org/x/net/html