GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Bump next from 13.5.6 to 15.5.28 [SECURITY] by superbot-helper · Pull Request #194 · sqlchat/sqlchat ConversationUpdates next from 13.5.6 to 15.5.28. Fixes GHSA-2464-fhr4-w9xw — a critical unauthenticated remote code execution in the Next.js Image Optimization API when SVG files are used on glibc-based Linux (CVSS 4.0 9.5): next 13.5.6 sits inside the advisory's affected range, but the image has no decoder for the flaw: the published tag installs no sharp and no libvips binding at any depth, a Node 18 install of this lock resolves no sharp because 0.35.5 requires Node >= 20.9, and the shipped optimizer throws a 500 before decoding, so no decoder-specific exploit exists in that image to fix; the patched sharp 0.35.5 applies only on Node >= 20.9, where the same lock resolves sharp 0.35.5 and @img/sharp-libvips 1.3.4 (rsvg 2.63.2). What this changes:
How to verify: pnpm install --frozen-lockfile # exits 0 with this pnpm-workspace.yaml: only @prisma/[email protected] and @prisma/[email protected] may run scripts and both do; the Prisma client is generated and, with openssl installed, its engine loads. Measured on node 18.20.8 and node 22 with pnpm 12.15.0 and pnpm 10.30.3 # controls: without the policy the same install exits 1 with ERR_PNPM_IGNORED_BUILDS naming @prisma/[email protected], @prisma/[email protected] and [email protected]; removing the '@prisma/[email protected]' entry exits 1 naming exactly that entry # Prisma engine-selection control (stock node:18-alpine, no image involved): on stock node:18-alpine with openssl, @prisma/client's postinstall generates libquery_engine-linux-musl-openssl-3.0.x.so.node and new PrismaClient().$disconnect() exits 0; on the bare image it generates libquery_engine-linux-musl.so.node and $disconnect() exits 1 with "Error loading shared library libssl.so.1.1", so openssl must be present in every stage that detects or loads the engine - this patch puts it in the shared base stage that deps, builder and runner all inherit # without the openssl binary the same generated client exits 1 with "Query engine library for current platform could not be found"; nft 0.27.10 (the tracer Next 15.5.28 bundles) traces node_modules/.pnpm/@[email protected][email protected]/node_modules/.prisma/client/libquery_engine-*.so.node into the standalone file list, so no outputFileTracingIncludes is needed node -p "require('next/package.json').version" pnpm lint pnpm exec tsc --noEmit # only pre-existing diagnostics: the patched tree's log is byte-identical to 85af0b4 without this patch docker build --network host -f Dockerfile -t sqlchat-176:dockerfile . # this prepared Dockerfile was built once in a Linux amd64 build environment (Docker 29.6.1), exit 0: @prisma/client and @prisma/engines are the only packages whose build scripts run, prisma generate selects libquery_engine-linux-musl-openssl-3.0.x.so.node with no libssl-detection fallback warning, and next 15.5.28 compiles docker build --network host -f Dockerfile.sqlchat-ai -t sqlchat-176:sqlchat-ai . # this prepared Dockerfile was built once in the same Linux amd64 build environment, exit 0, reusing the same shared-base openssl layer (base 2/2 CACHED) docker run -d --name sqlchat-176-run-df --network host -e PORT=3811 -e HOSTNAME=127.0.0.1 sqlchat-176:dockerfile && curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:3811/ # 200, 2272 bytes: the standalone runner starts (Next.js 15.5.28, Ready in 140 ms) and serves the statically rendered home page, which has no getServerSideProps; the Dockerfile.sqlchat-ai runner returned the same 200 docker exec -u nextjs -w /app sqlchat-176-run-df node -e 'const {PrismaClient}=require("@prisma/client"); const p=new PrismaClient(); p.$disconnect().then(()=>console.log("ENGINE_LOADED_AND_DISCONNECTED")).catch(e=>{console.log("ENGINE_LOAD_ERR",e.message);process.exit(3)})' # ENGINE_LOADED_AND_DISCONNECTED, exit 0 in both runners: Prisma 4.13.0 locates and loads the musl openssl-3.0.x engine as nextjs without opening a database connection # limits: no database connection or query ($disconnect() only); linux/amd64 only, no arm64 or multi-arch build; the published docker.io/sqlchat/sqlchat image was not re-checked, because this is a locally built image from the prepared artifact Automated security patch from Superbot.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThis branch has not been deployedNo deployments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |