From c35e7048942702baaadc5ead5c5d030c4a8b4ef9 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Mon, 2 Nov 2026 08:51:36 -0800 Subject: [PATCH] fix(security): bump pyjwt, DRF, sqlparse, urllib3 and berglas for AR CVEs DRF 3.18.2 requires Django 5.2, so move to the 5.2 LTS line (also clears the django 5.1 high). berglas v2.0.18 already ships patched grpc/go-jose, so the go get pins are no longer needed. Co-authored-by: Cursor --- Dockerfile | 9 +++------ requirements.in | 2 +- requirements.txt | 10 +++++----- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00a7263..3897ee5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,15 @@ # syntax=docker/dockerfile:1.3 ARG REQUIREMENTS_IMAGE -ARG BERGLAS_VERSION=v2.0.15 +ARG BERGLAS_VERSION=v2.0.18 ARG GO_IMAGE=golang:1.27.3-bookworm -# Build berglas from source: the prebuilt image lags on Go stdlib and -# module pins (x/crypto, grpc), which carry critical/high CVEs in AR scans. +# Build berglas from source: the prebuilt image lags on the Go stdlib, which +# carries critical/high CVEs in AR scans. FROM ${GO_IMAGE} as berglas ARG BERGLAS_VERSION RUN git clone --depth 1 --branch ${BERGLAS_VERSION} \ https://github.com/GoogleCloudPlatform/berglas.git /src WORKDIR /src -RUN go get google.golang.org/grpc@v1.82.1 \ - golang.org/x/crypto@v0.54.0 \ - golang.org/x/net@v0.57.0 && go mod tidy RUN CGO_ENABLED=0 go build -trimpath -o /bin/berglas . FROM $REQUIREMENTS_IMAGE diff --git a/requirements.in b/requirements.in index e55c496..0ccad9b 100644 --- a/requirements.in +++ b/requirements.in @@ -1,4 +1,4 @@ -Django>=5.1,<5.2 +Django>=5.2,<5.3 asgiref django-csp>=3.8,<4 djangorestframework diff --git a/requirements.txt b/requirements.txt index 29825a0..c61cacb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,14 +18,14 @@ certifi==2026.10.23 # sentry-sdk charset-normalizer==3.4.9 # via requests -django==5.1.15 +django==5.2.18 # via # -r requirements.in # django-csp # djangorestframework django-csp==3.8 # via -r requirements.in -djangorestframework==3.17.1 +djangorestframework==3.18.3 # via -r requirements.in gunicorn==26.0.0 # via -r requirements.in @@ -52,7 +52,7 @@ psycopg2-binary==2.9.12 # via -r requirements.in pygments==2.20.0 # via pytest -pyjwt==2.13.0 +pyjwt==2.15.1 # via -r requirements.in pytest==9.1.1 # via pytest-django @@ -68,13 +68,13 @@ slack-sdk==3.43.0 # via # -r requirements.in # slack-bolt -sqlparse==0.5.5 +sqlparse==0.6.1 # via # -r requirements.in # django typing-extensions==4.16.0 # via anyio -urllib3==2.7.0 +urllib3==2.8.0 # via # -r requirements.in # requests