VDB
Sign up
HIGH7.5

GHSA-vfw5-hrgq-h5wf

x/net/html Vulnerable to DoS During HTML Parsing

Quick fix

GHSA-vfw5-hrgq-h5wf — golang.org/x/net: upgrade to the fixed version with the command below.

go get golang.org/x/net@v0.0.0-20190125091013-d26f9f9a57f3

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/golang.org/x/net
Introduced in: 0Fixed in: 0.0.0-20190125091013-d26f9f9a57f3
Fixgo get golang.org/x/net@v0.0.0-20190125091013-d26f9f9a57f3

References