Skip to content

Commit 5d787a1

Browse files
dorlugasigalCopilot
andcommitted
fix(security): patch HIGH CVEs flagged by Trivy
Three HIGH-severity findings appeared in the latest Trivy scan due to new vuln-database entries; none are caused by the previous Cloudflare removal commit but they block the Security workflow. devalue@5.7.1 (CVE-2026-42570) - DoS via sparse-array deserialization. Astro hasn't bumped its devalue range yet, so override it to >=5.8.1 in packages/site/package.json. Docker base image - bump node:26-slim digest to the latest published build (sha256:a12126cf...) and add an explicit apt-get upgrade -y step so libcap2 (CVE-2026-4878) and libsystemd0 (CVE-2026-29111) are patched from Debian security regardless of base-image freshness. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 35032a2 commit 5d787a1

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
FROM node:26-slim@sha256:424cafd2a035ed2b2d74acc3142b68b426fb62a47742c80a75e7117db02d6b30
1+
FROM node:26-slim@sha256:a12126cfec3cd85577cb573fa86a588018721098c18fe67fe1a554cc25a1a6a5
22

3-
RUN apt-get update && apt-get install -y \
4-
python3 make g++ \
3+
RUN apt-get update \
4+
&& apt-get upgrade -y \
5+
&& apt-get install -y python3 make g++ \
56
&& rm -rf /var/lib/apt/lists/*
67

78
WORKDIR /app

packages/site/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/site/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
},
1717
"overrides": {
1818
"yaml": ">=2.8.3",
19-
"fast-uri": ">=3.1.2"
19+
"fast-uri": ">=3.1.2",
20+
"devalue": ">=5.8.1"
2021
},
2122
"dependencies": {
2223
"@astrojs/check": "^0.9.8",

0 commit comments

Comments
 (0)