Skip to content

Commit 7c868d1

Browse files
authored
fix all high vul (#4556)
1 parent 5d5e5af commit 7c868d1

File tree

7 files changed

+157
-121
lines changed

7 files changed

+157
-121
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Go
2626
uses: actions/setup-go@v3
2727
with:
28-
go-version: 1.21.11
28+
go-version: 1.22.12
2929
cache: false
3030

3131
- name: Build Go

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Set up Go
2929
uses: actions/setup-go@v2
3030
with:
31-
go-version: 1.21.11
31+
go-version: 1.22.12
3232

3333
- name: make iotex-server/ioctl
3434
if: startsWith(matrix.os, 'windows-latest') != true

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21.11-alpine AS build
1+
FROM golang:1.22.12-alpine AS build
22

33
WORKDIR /go/apps/iotex-core
44

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Please visit [IoTeX Delegate Manual](https://github.com/iotexproject/iotex-boots
3838

3939
| Components | Version | Description |
4040
|----------|-------------|-------------|
41-
| [Golang](https://golang.org) | ≥ 1.18.5 | Go programming language |
41+
| [Golang](https://golang.org) | ≥ 1.22.12 | Go programming language |
4242
| [Protoc](https://developers.google.com/protocol-buffers/) | ≥ 3.6.0 | Protocol buffers, required only when you rebuild protobuf messages |
4343

4444
### Compile

action/receipt.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (log *Log) ConvertToLogPb() *iotextypes.Log {
202202
l.Topics = [][]byte{}
203203
for _, topic := range log.Topics {
204204
if log.NotFixTopicCopyBug {
205-
l.Topics = append(l.Topics, topic[:])
205+
l.Topics = append(l.Topics, log.Topics[len(log.Topics)-1][:])
206206
} else {
207207
data := make([]byte, len(topic))
208208
copy(data, topic[:])

go.mod

+48-49
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/iotexproject/iotex-core/v2
22

3-
go 1.21.11
3+
go 1.22.12
44

55
require (
66
github.com/agiledragon/gomonkey/v2 v2.11.0
@@ -15,7 +15,7 @@ require (
1515
github.com/go-resty/resty/v2 v2.15.3
1616
github.com/golang/mock v1.6.0
1717
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb
18-
github.com/gorilla/websocket v1.5.0
18+
github.com/gorilla/websocket v1.5.3
1919
github.com/grpc-ecosystem/go-grpc-middleware v1.2.0
2020
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
2121
github.com/hashicorp/vault/api v1.1.0
@@ -29,39 +29,39 @@ require (
2929
github.com/iotexproject/iotex-election v0.3.7-0.20250204145548-654ace326d3e
3030
github.com/iotexproject/iotex-proto v0.6.4
3131
github.com/ipfs/go-ipfs-api v0.7.0
32-
github.com/libp2p/go-libp2p v0.32.2
32+
github.com/libp2p/go-libp2p v0.33.2
3333
github.com/mackerelio/go-osstat v0.2.4
3434
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1
3535
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
36-
github.com/multiformats/go-multiaddr v0.13.0
36+
github.com/multiformats/go-multiaddr v0.14.0
3737
github.com/pkg/errors v0.9.1
38-
github.com/prometheus/client_golang v1.17.0
39-
github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16
38+
github.com/prometheus/client_golang v1.20.5
39+
github.com/prometheus/client_model v0.6.1
4040
github.com/rodaine/table v1.0.1
4141
github.com/schollz/progressbar/v2 v2.15.0
4242
github.com/shirou/gopsutil/v3 v3.22.8
4343
github.com/spf13/cobra v1.5.0
44-
github.com/stretchr/testify v1.9.0
44+
github.com/stretchr/testify v1.10.0
4545
github.com/tidwall/gjson v1.11.0
4646
github.com/tyler-smith/go-bip39 v1.1.0
4747
github.com/uptrace/opentelemetry-go-extra/otelzap v0.2.2
4848
go.elastic.co/ecszap v1.0.0
4949
go.etcd.io/bbolt v1.3.6
50-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.42.0
51-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.42.0
50+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0
51+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.0
5252
go.opentelemetry.io/otel v1.29.0
5353
go.opentelemetry.io/otel/exporters/jaeger v1.17.0
5454
go.opentelemetry.io/otel/sdk v1.29.0
5555
go.opentelemetry.io/otel/trace v1.29.0
5656
go.uber.org/atomic v1.11.0
5757
go.uber.org/automaxprocs v1.5.2
5858
go.uber.org/config v1.3.1
59-
go.uber.org/zap v1.26.0
59+
go.uber.org/zap v1.27.0
6060
golang.org/x/crypto v0.32.0
61-
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
61+
golang.org/x/exp v0.0.0-20250128182459-e0ece0dbea4c
6262
golang.org/x/net v0.34.0
63-
golang.org/x/sync v0.10.0
64-
golang.org/x/text v0.21.0
63+
golang.org/x/sync v0.11.0
64+
golang.org/x/text v0.22.0
6565
golang.org/x/time v0.6.0
6666
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4
6767
google.golang.org/grpc v1.67.3
@@ -78,10 +78,10 @@ require (
7878
github.com/beorn7/perks v1.0.1 // indirect
7979
github.com/bits-and-blooms/bitset v1.10.0 // indirect
8080
github.com/blang/semver/v4 v4.0.0 // indirect
81-
github.com/btcsuite/btcd v0.23.3 // indirect
81+
github.com/btcsuite/btcd v0.24.2 // indirect
8282
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
83-
github.com/btcsuite/btcd/btcutil v1.1.0 // indirect
84-
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
83+
github.com/btcsuite/btcd/btcutil v1.1.5 // indirect
84+
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 // indirect
8585
github.com/cockroachdb/errors v1.8.1 // indirect
8686
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f // indirect
8787
github.com/cockroachdb/redact v1.0.8 // indirect
@@ -97,16 +97,16 @@ require (
9797
github.com/davecgh/go-spew v1.1.1 // indirect
9898
github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect
9999
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
100-
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
100+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
101101
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
102102
github.com/dlclark/regexp2 v1.7.0 // indirect
103103
github.com/docker/go-units v0.5.0 // indirect
104104
github.com/dop251/goja v0.0.0-20230806174421-c933cf95e127 // indirect
105105
github.com/dustinxie/gmsm v1.4.0 // indirect
106-
github.com/elastic/gosigar v0.14.2 // indirect
106+
github.com/elastic/gosigar v0.14.3 // indirect
107107
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
108-
github.com/felixge/httpsnoop v1.0.3 // indirect
109-
github.com/flynn/noise v1.0.0 // indirect
108+
github.com/felixge/httpsnoop v1.0.4 // indirect
109+
github.com/flynn/noise v1.1.0 // indirect
110110
github.com/francoispqt/gojay v1.2.13 // indirect
111111
github.com/fsnotify/fsnotify v1.6.0 // indirect
112112
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
@@ -115,64 +115,63 @@ require (
115115
github.com/go-logr/stdr v1.2.2 // indirect
116116
github.com/go-ole/go-ole v1.3.0 // indirect
117117
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
118-
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
118+
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
119119
github.com/godbus/dbus/v5 v5.1.0 // indirect
120120
github.com/gofrs/flock v0.8.1 // indirect
121121
github.com/gogo/protobuf v1.3.2 // indirect
122122
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
123123
github.com/golang/protobuf v1.5.4 // indirect
124124
github.com/google/gopacket v1.1.19 // indirect
125-
github.com/google/pprof v0.0.0-20231023181126-ff6d637d2a7b // indirect
125+
github.com/google/pprof v0.0.0-20250202011525-fc3143867406 // indirect
126126
github.com/google/uuid v1.6.0 // indirect
127127
github.com/hashicorp/errwrap v1.1.0 // indirect
128128
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
129129
github.com/hashicorp/go-multierror v1.1.1 // indirect
130-
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
130+
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
131131
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
132132
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
133133
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
134-
github.com/hashicorp/golang-lru/v2 v2.0.5 // indirect
134+
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
135135
github.com/hashicorp/hcl v1.0.0 // indirect
136136
github.com/hashicorp/vault/sdk v0.1.14-0.20200519221838-e0cfd64bc267 // indirect
137137
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
138138
github.com/huin/goupnp v1.3.0 // indirect
139139
github.com/inconshreveable/mousetrap v1.0.0 // indirect
140140
github.com/ipfs/boxo v0.12.0 // indirect
141-
github.com/ipfs/go-cid v0.4.1 // indirect
141+
github.com/ipfs/go-cid v0.5.0 // indirect
142142
github.com/ipfs/go-datastore v0.6.0 // indirect
143143
github.com/ipfs/go-log v1.0.5 // indirect
144144
github.com/ipfs/go-log/v2 v2.5.1 // indirect
145145
github.com/ipld/go-ipld-prime v0.21.0 // indirect
146146
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
147147
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
148148
github.com/jbenet/goprocess v0.1.4 // indirect
149-
github.com/klauspost/compress v1.17.2 // indirect
150-
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
151-
github.com/koron/go-ssdp v0.0.4 // indirect
149+
github.com/klauspost/compress v1.17.11 // indirect
150+
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
151+
github.com/koron/go-ssdp v0.0.5 // indirect
152152
github.com/kr/pretty v0.3.1 // indirect
153153
github.com/kr/text v0.2.0 // indirect
154154
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
155155
github.com/libp2p/go-cidranger v1.1.0 // indirect
156-
github.com/libp2p/go-flow-metrics v0.1.0 // indirect
157-
github.com/libp2p/go-libp2p-asn-util v0.3.0 // indirect
156+
github.com/libp2p/go-flow-metrics v0.2.0 // indirect
157+
github.com/libp2p/go-libp2p-asn-util v0.4.1 // indirect
158158
github.com/libp2p/go-libp2p-kad-dht v0.25.2 // indirect
159159
github.com/libp2p/go-libp2p-kbucket v0.6.3 // indirect
160160
github.com/libp2p/go-libp2p-pubsub v0.10.0 // indirect
161161
github.com/libp2p/go-libp2p-record v0.2.0 // indirect
162162
github.com/libp2p/go-libp2p-routing-helpers v0.7.2 // indirect
163163
github.com/libp2p/go-msgio v0.3.0 // indirect
164164
github.com/libp2p/go-nat v0.2.0 // indirect
165-
github.com/libp2p/go-netroute v0.2.1 // indirect
165+
github.com/libp2p/go-netroute v0.2.2 // indirect
166166
github.com/libp2p/go-reuseport v0.4.0 // indirect
167-
github.com/libp2p/go-yamux/v4 v4.0.1 // indirect
167+
github.com/libp2p/go-yamux/v4 v4.0.2 // indirect
168168
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
169169
github.com/magefile/mage v1.9.0 // indirect
170170
github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect
171171
github.com/mattn/go-isatty v0.0.20 // indirect
172172
github.com/mattn/go-runewidth v0.0.13 // indirect
173173
github.com/mattn/go-sqlite3 v1.14.5 // indirect
174-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
175-
github.com/miekg/dns v1.1.56 // indirect
174+
github.com/miekg/dns v1.1.63 // indirect
176175
github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b // indirect
177176
github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect
178177
github.com/minio/sha256-simd v1.0.1 // indirect
@@ -183,27 +182,27 @@ require (
183182
github.com/mr-tron/base58 v1.2.0 // indirect
184183
github.com/multiformats/go-base32 v0.1.0 // indirect
185184
github.com/multiformats/go-base36 v0.2.0 // indirect
186-
github.com/multiformats/go-multiaddr-dns v0.3.1 // indirect
185+
github.com/multiformats/go-multiaddr-dns v0.4.1 // indirect
187186
github.com/multiformats/go-multiaddr-fmt v0.1.0 // indirect
188187
github.com/multiformats/go-multibase v0.2.0 // indirect
189188
github.com/multiformats/go-multicodec v0.9.0 // indirect
190189
github.com/multiformats/go-multihash v0.2.3 // indirect
191-
github.com/multiformats/go-multistream v0.5.0 // indirect
190+
github.com/multiformats/go-multistream v0.6.0 // indirect
192191
github.com/multiformats/go-varint v0.0.7 // indirect
192+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
193193
github.com/olekukonko/tablewriter v0.0.5 // indirect
194-
github.com/onsi/ginkgo/v2 v2.13.0 // indirect
195-
github.com/opencontainers/runtime-spec v1.1.0 // indirect
194+
github.com/onsi/ginkgo/v2 v2.22.2 // indirect
195+
github.com/opencontainers/runtime-spec v1.2.0 // indirect
196196
github.com/opentracing/opentracing-go v1.2.0 // indirect
197197
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
198198
github.com/pierrec/lz4 v2.0.5+incompatible // indirect
199199
github.com/pmezard/go-difflib v1.0.0 // indirect
200200
github.com/polydawn/refmt v0.89.0 // indirect
201201
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
202-
github.com/prometheus/common v0.44.0 // indirect
203-
github.com/prometheus/procfs v0.11.1 // indirect
202+
github.com/prometheus/common v0.55.0 // indirect
203+
github.com/prometheus/procfs v0.15.1 // indirect
204204
github.com/quic-go/qpack v0.4.0 // indirect
205-
github.com/quic-go/qtls-go1-20 v0.3.4 // indirect
206-
github.com/quic-go/quic-go v0.39.4 // indirect
205+
github.com/quic-go/quic-go v0.42.0 // indirect
207206
github.com/quic-go/webtransport-go v0.6.0 // indirect
208207
github.com/raulk/go-watchdog v1.3.0 // indirect
209208
github.com/rivo/uniseg v0.2.0 // indirect
@@ -224,18 +223,18 @@ require (
224223
github.com/yusufpapurcu/wmi v1.2.2 // indirect
225224
go.opencensus.io v0.24.0 // indirect
226225
go.opentelemetry.io/otel/metric v1.29.0 // indirect
227-
go.uber.org/dig v1.17.1 // indirect
228-
go.uber.org/fx v1.20.1 // indirect
229-
go.uber.org/mock v0.3.0 // indirect
226+
go.uber.org/dig v1.18.0 // indirect
227+
go.uber.org/fx v1.23.0 // indirect
228+
go.uber.org/mock v0.5.0 // indirect
230229
go.uber.org/multierr v1.11.0 // indirect
231-
golang.org/x/mod v0.17.0 // indirect
232-
golang.org/x/sys v0.29.0 // indirect
230+
golang.org/x/mod v0.23.0 // indirect
231+
golang.org/x/sys v0.30.0 // indirect
233232
golang.org/x/term v0.28.0 // indirect
234-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
233+
golang.org/x/tools v0.29.0 // indirect
235234
gonum.org/v1/gonum v0.13.0 // indirect
236235
gopkg.in/square/go-jose.v2 v2.5.1 // indirect
237236
gopkg.in/yaml.v3 v3.0.1 // indirect
238-
lukechampine.com/blake3 v1.2.1 // indirect
237+
lukechampine.com/blake3 v1.3.0 // indirect
239238
rsc.io/tmplfunc v0.0.3 // indirect
240239
)
241240

0 commit comments

Comments
 (0)