CVE-2018-17142 — x/net
HIGHCVE-2018-17142 is a high-severity (CVSS 7.5) NULL Pointer Dereference vulnerability in golang.org/x/net. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for golang.org/x/net — see the affected versions and patch details below.
golang.org/x/net/html NULL Pointer Dereference vulnerability
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-17 in Go mishandles <math><template><mo><template>, leading to a "panic: runtime error" in parseCurrentToken in parse.go during an html.Parse call.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | golang.org/x/net | all versions | 0.0.0-20180925071336-cf3bd585ca2ago get golang.org/x/net@v0.0.0-20180925071336-cf3bd585ca2a |
Affected Products
fedorafedoraprojectnetgolangResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & 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-20180925071336-cf3bd585ca2a or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-17142 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2018-17142 in your dependencies?
Find it across Go, including transitive dependencies.