VDB
Sign up
HIGH7.5

GHSA-4r78-hx75-jjj2

golang.org/x/net/html has Improper Restriction of Operations within the Bounds of a Memory Buffer

Quick fix

GHSA-4r78-hx75-jjj2 — golang.org/x/net: upgrade to the fixed version with the command below.

go get golang.org/x/net@v0.0.0-20190125002852-4b62a64f59f7

Details

The html package (aka `x/net/html`) through 2018-09-25 in Go mishandles `<svg><template><desc><t><svg></template>`, leading to a `panic: runtime error` (index out of range) in `(*nodeStack).pop` in node.go, called from `(*parser).clearActiveFormattingElements`, during an `html.Parse` call.

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-20190125002852-4b62a64f59f7
Fixgo get golang.org/x/net@v0.0.0-20190125002852-4b62a64f59f7

References