Skip to content

Commit cef941b

Browse files
authored
go.mod: vulnerabilities: bump go version to 1.23.12 for (#2077)
`govulncheck` detects some vulnerabilities from the current builds that are resolved by bumping the minor Go version to `.12`. I have kept the major version the same. On current `main`: $ go build -o athens ./cmd/proxy/main.go $ govulncheck -mode binary ./athens === Symbol Results === Vulnerability #1: GO-2025-3956 Unexpected paths returned from LookPath in os/exec More info: https://pkg.go.dev/vuln/GO-2025-3956 Standard library Found in: os/exec@go1.23.5 Fixed in: os/exec@go1.23.12 Vulnerable symbols found: #1: exec.LookPath Vulnerability #2: GO-2025-3849 Incorrect results returned from Rows.Scan in database/sql More info: https://pkg.go.dev/vuln/GO-2025-3849 Standard library Found in: database/sql@go1.23.5 Fixed in: database/sql@go1.23.12 Vulnerable symbols found: #1: sql.Row.Scan #2: sql.Rows.Scan Vulnerability #3: GO-2025-3751 Sensitive headers not cleared on cross-origin redirect in net/http More info: https://pkg.go.dev/vuln/GO-2025-3751 Standard library Found in: net/http@go1.23.5 Fixed in: net/http@go1.23.10 Vulnerable symbols found: #1: http.Client.Do #2: http.Client.Get #3: http.Client.Head #4: http.Client.Post #5: http.Client.PostForm Vulnerability #4: GO-2025-3563 Request smuggling due to acceptance of invalid chunked data in net/http More info: https://pkg.go.dev/vuln/GO-2025-3563 Standard library Found in: net/http/internal@go1.23.5 Fixed in: net/http/internal@go1.23.8 Vulnerable symbols found: #1: internal.chunkedReader.Read Your code is affected by 4 vulnerabilities from the Go standard library. This scan also found 0 vulnerabilities in packages you import and 2 vulnerabilities in modules you require, but your code doesn't appear to call these vulnerabilities. Use '-show verbose' for more details. After version bump: $ go build -o athens ./cmd/proxy/main.go $ govulncheck -mode=binary ./athens === Symbol Results === No vulnerabilities found. Your code is affected by 0 vulnerabilities. This scan also found 0 vulnerabilities in packages you import and 2 vulnerabilities in modules you require, but your code doesn't appear to call these vulnerabilities. Use '-show verbose' for more details.
1 parent 28bc9a8 commit cef941b

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Dockerfile.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GOLANG_VERSION=1.23.5
1+
ARG GOLANG_VERSION=1.23.12
22
FROM golang:$GOLANG_VERSION
33

44
RUN echo $GOLANG_VERSION

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ environment:
1010
GOPROXY: https://proxy.golang.org
1111
SKIP_UNTIL_113: true
1212

13-
stack: go 1.23.5
13+
stack: go 1.23.12
1414

1515
test_script:
1616
- go version

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
context: .
66
dockerfile: cmd/proxy/Dockerfile
77
args:
8-
GOLANG_VERSION: "1.23.5"
8+
GOLANG_VERSION: "1.23.12"
99
environment:
1010
- ATHENS_MONGO_STORAGE_URL=mongodb://mongo:27017
1111
- TIMEOUT=20 # in case the mongo dependency takes longer to start up
@@ -20,7 +20,7 @@ services:
2020
context: .
2121
dockerfile: Dockerfile.test
2222
args:
23-
GOLANG_VERSION: "1.23.5"
23+
GOLANG_VERSION: "1.23.12"
2424
command: ["./scripts/test_unit.sh"]
2525
environment:
2626
- GO_ENV=test
@@ -36,7 +36,7 @@ services:
3636
context: .
3737
dockerfile: Dockerfile.test
3838
args:
39-
GOLANG_VERSION: "1.23.5"
39+
GOLANG_VERSION: "1.23.12"
4040
command: ["./scripts/test_e2e.sh"]
4141
azurite:
4242
image: arafato/azurite:2.6.5

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/gomods/athens
22

3-
go 1.23.5
3+
go 1.23.12
44

55
require (
66
cloud.google.com/go/storage v1.45.0

0 commit comments

Comments
 (0)