CVE-2018-17846 — x/net
HIGHCVE-2018-17846 is a high-severity (CVSS 7.5) CWE-835 vulnerability in golang.org/x/net. A fix is available for golang.org/x/net — see the affected versions and patch details below.
x/net/html Vulnerable to DoS During HTML Parsing
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
golang.org/x/netReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
The html package (aka x/net/html) through 2018-09-25 in Go mishandles <table><math><select><mi><select></table>, leading to an infinite loop during an html.Parse call because inSelectIM and inSelectInTableIM do not comply with a specification.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | golang.org/x/net | all versions | 0.0.0-20190125091013-d26f9f9a57f3go get golang.org/x/net@v0.0.0-20190125091013-d26f9f9a57f3 |
Affected Products
fedorafedoraprojectnetgolangDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for golang.org/x/net, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update golang.org/x/net to 0.0.0-20190125091013-d26f9f9a57f3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-17846 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is CVE-2018-17846 in your dependencies?
Find it across Go, including transitive dependencies.