Skip to content

Commit 5eaf9cf

Browse files
committed
fix(deps): bump pion/stun to v3.1.5 and pion/dtls to v3.1.4
Both are pulled in transitively through go-libp2p's WebRTC transport and both currently resolve to versions with published advisories: GHSA-34rh-wp3j-6cxc pion/stun remote DoS via panic while parsing a malformed STUN message (fixed 3.1.5) GHSA-wg4g-wm44-ch5j pion/dtls DoS via panic while parsing a crafted handshake (fixed 3.1.4) edgevpn is bundled as a binary in every Kairos release, so these surface in downstream vulnerability scans of the shipped artifacts. The bump also carries pion/transport v4.0.1 -> v4.0.2 as a dependency. Verified: `go build ./...` clean, `go vet ./...` clean, and `go test -count=1 ./pkg/node/...` green twice at 13s and 10s, matching baseline timings on an unmodified checkout. Deliberately limited to these two modules. Two other advisories in the same scan were left alone because their fixes break peer connectivity: webtransport-go v0.11.1 pulls quic-go 0.59.1 -> 0.60.0, and x/text v0.39.0 in combination with these pion bumps -- both make pkg/node's "nodes can write to the ledger" spec time out at 240s where it otherwise passes in about 12s. Those look like they need a go-libp2p bump first and are left for a separate change.
1 parent 7fa17c5 commit 5eaf9cf

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ require (
108108
github.com/opentracing/opentracing-go v1.2.0 // indirect
109109
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
110110
github.com/pion/datachannel v1.5.10 // indirect
111-
github.com/pion/dtls/v3 v3.1.2 // indirect
111+
github.com/pion/dtls/v3 v3.1.4 // indirect
112112
github.com/pion/ice/v4 v4.0.10 // indirect
113113
github.com/pion/interceptor v0.1.40 // indirect
114114
github.com/pion/logging v0.2.4 // indirect
@@ -119,9 +119,9 @@ require (
119119
github.com/pion/sctp v1.8.39 // indirect
120120
github.com/pion/sdp/v3 v3.0.18 // indirect
121121
github.com/pion/srtp/v3 v3.0.6 // indirect
122-
github.com/pion/stun/v3 v3.1.1 // indirect
122+
github.com/pion/stun/v3 v3.1.5 // indirect
123123
github.com/pion/transport/v3 v3.0.7 // indirect
124-
github.com/pion/transport/v4 v4.0.1 // indirect
124+
github.com/pion/transport/v4 v4.0.2 // indirect
125125
github.com/pion/turn/v4 v4.0.2 // indirect
126126
github.com/pion/webrtc/v4 v4.1.2 // indirect
127127
github.com/polydawn/refmt v0.89.1-0.20231129105047-37766d95467a // indirect

go.sum

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,8 @@ github.com/pion/datachannel v1.5.10 h1:ly0Q26K1i6ZkGf42W7D4hQYR90pZwzFOjTq5AuCKk
447447
github.com/pion/datachannel v1.5.10/go.mod h1:p/jJfC9arb29W7WrxyKbepTU20CFgyx5oLo8Rs4Py/M=
448448
github.com/pion/dtls/v3 v3.1.2 h1:gqEdOUXLtCGW+afsBLO0LtDD8GnuBBjEy6HRtyofZTc=
449449
github.com/pion/dtls/v3 v3.1.2/go.mod h1:Hw/igcX4pdY69z1Hgv5x7wJFrUkdgHwAn/Q/uo7YHRo=
450+
github.com/pion/dtls/v3 v3.1.4 h1:QhvtMflMfu9Kf0RcDC5BJBle4caPskByrKQR6uuYqpY=
451+
github.com/pion/dtls/v3 v3.1.4/go.mod h1:cr/qotLISUw/9C1m83ZPNZtj9WnXkYLpfCptPqbkInc=
450452
github.com/pion/ice/v4 v4.0.10 h1:P59w1iauC/wPk9PdY8Vjl4fOFL5B+USq1+xbDcN6gT4=
451453
github.com/pion/ice/v4 v4.0.10/go.mod h1:y3M18aPhIxLlcO/4dn9X8LzLLSma84cx6emMSu14FGw=
452454
github.com/pion/interceptor v0.1.40 h1:e0BjnPcGpr2CFQgKhrQisBU7V3GXK6wrfYrGYaU6Jq4=
@@ -469,10 +471,14 @@ github.com/pion/srtp/v3 v3.0.6 h1:E2gyj1f5X10sB/qILUGIkL4C2CqK269Xq167PbGCc/4=
469471
github.com/pion/srtp/v3 v3.0.6/go.mod h1:BxvziG3v/armJHAaJ87euvkhHqWe9I7iiOy50K2QkhY=
470472
github.com/pion/stun/v3 v3.1.1 h1:CkQxveJ4xGQjulGSROXbXq94TAWu8gIX2dT+ePhUkqw=
471473
github.com/pion/stun/v3 v3.1.1/go.mod h1:qC1DfmcCTQjl9PBaMa5wSn3x9IPmKxSdcCsxBcDBndM=
474+
github.com/pion/stun/v3 v3.1.5 h1:Y1FHlhaI6+4UoC5i/zQf4F7JvdZtB24/05oyy/GF1x8=
475+
github.com/pion/stun/v3 v3.1.5/go.mod h1:zRUghXSQU32Lx5orJsz3uYMkIihweXb3mu5gIns02fs=
472476
github.com/pion/transport/v3 v3.0.7 h1:iRbMH05BzSNwhILHoBoAPxoB9xQgOaJk+591KC9P1o0=
473477
github.com/pion/transport/v3 v3.0.7/go.mod h1:YleKiTZ4vqNxVwh77Z0zytYi7rXHl7j6uPLGhhz9rwo=
474478
github.com/pion/transport/v4 v4.0.1 h1:sdROELU6BZ63Ab7FrOLn13M6YdJLY20wldXW2Cu2k8o=
475479
github.com/pion/transport/v4 v4.0.1/go.mod h1:nEuEA4AD5lPdcIegQDpVLgNoDGreqM/YqmEx3ovP4jM=
480+
github.com/pion/transport/v4 v4.0.2 h1:ifYlPqNwsy6aKQ9y8yzxXlHae5431ZrH2avkD/Rn6Tk=
481+
github.com/pion/transport/v4 v4.0.2/go.mod h1:06hFI+jCFcok2X2MekVufNZ/uzNZXivGBPfviSVcjgM=
476482
github.com/pion/turn/v4 v4.0.2 h1:ZqgQ3+MjP32ug30xAbD6Mn+/K4Sxi3SdNOTFf+7mpps=
477483
github.com/pion/turn/v4 v4.0.2/go.mod h1:pMMKP/ieNAG/fN5cZiN4SDuyKsXtNTr0ccN7IToA1zs=
478484
github.com/pion/webrtc/v4 v4.1.2 h1:mpuUo/EJ1zMNKGE79fAdYNFZBX790KE7kQQpLMjjR54=

0 commit comments

Comments
 (0)