Repository navigation
Conversation
…run container as non-root Next 14 has no patched release for the open critical RCE advisories (image optimizer AVIF/SVG, Windows-hosted servers) or the high SSRF/DoS ones; 15.5.29 is the first release that clears every open Dependabot alert for the app. Route handler params are a Promise in Next 15, so the handler awaits them. Also commits a lockfile so builds are reproducible, declares react/react-dom explicitly, adds a typecheck script and an ESLint config so `next lint` runs non-interactively, and builds the Docker image with npm ci as the unprivileged node user. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…log param names only From the Codex security review of the app: - POST bodies were buffered without a limit; reads now stop at 64 KiB and return 413. - Cookie and Authorization headers for the proxy's own domain were forwarded to api.stackone.com; they are now dropped with the hop-by-hop headers. - The request log redacted four known parameter names but printed every other value (id_token, JARM "response"); it now logs parameter names only. Also narrows eslint-config-prettier in packages/eslint-config to ^10.1.8 so the range no longer admits the compromised 10.1.6 and 10.1.7 releases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…what they are Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
AIKIDO-2026-690382 in nanoid - medium severity
The customAlphabet and nanoid generators in the non-secure module of nanoid decrement a loop counter until it reaches zero to build an identifier. When these functions receive a negative size, the counter starts below zero and the while (i--) loop never reaches its termination condition, spinning indefinitely and hanging the calling thread. An application that forwards an unvalidated, externally influenced negative size into these functions is exposed to a denial-of-service condition. The fix guards the loop with i-- > 0 so a negative size produces an empty string instead of looping forever.
Details
Remediation Aikido suggests bumping this package to version 5.1.16 to resolve this issue
Reply @AikidoSec ignore: [REASON] to ignore this issue.
More info
There was a problem hiding this comment.
Triage: not reachable, left as is. nanoid 3.3.x comes in through postcss 8.4.31, which Next 15.5.29 pins exactly. postcss calls the non-secure generator only with fixed positive sizes, so the negative-size loop cannot be triggered. The fix exists only in nanoid 5.x, which postcss 8.4 does not accept. The same advisory is already open on main for the rag app's lockfile.
🤖 Generated with Claude Code
Vercel runs the install inside the app directory, where npm resolves the monorepo workspace root. That root has no lockfile, so deploys would ignore the lockfile this PR adds. `npm ci --prefix .` installs from it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Security pass on
apps/oauth-redirect-proxyandpackages/eslint-config.Findings and fixes
^14.0.0has no patched 14.x releasenext→^15.5.29, the first release that clears every open Dependabot alert for this app (24 alerts: 3 critical, 8 high)nodeuserCookieandAuthorizationfor the proxy's own domain to api.stackone.comid_token, JARMresponse)eslint-config-prettier^10.1.1admits the compromised 10.1.6 and 10.1.7 releases^10.1.8Supporting changes:
package-lock.json(the app had none, so every install resolved fresh), declaresreact/react-dom, adds atypecheckscript and an.eslintrc.jsonsonext lintruns without the interactive setup prompt.vercel.jsonsets"installCommand": "npm ci --prefix .". Vercel otherwise resolves from the workspace root, which has no lockfile, and ignores this app's lockfile. See fix(rag-knowledge-agent): clear critical deps, fix typecheck, enforce ownership on account and document routes #63 for how that broke the rag app.npm ciwith dev dependencies (the build needs TypeScript),npm prune --omit=devafter the build. TheFROMline is untouched so it does not conflict with chore(SEC-104): bump Node to 22.23.5 / 24.22.3 / 26.13.1 (Nov 2026 security release) #47.Not fixed
postcss8.4.31 (high,npm audit): Next 15.5.29 pins it exactly. The advisories need attacker-controlled CSS at build time; this app has no CSS. Clearing it means Next 16 (next lintis removed there), which is a separate decision.Testing (local, Node 22.22.0)
npm ci,npm run typecheck,npm run lint(no warnings),npm run build: all pass.next startsmoke test:GET /connect/oauth2/hubspot/callback?code=…&state=…→ 307 tohttps://api.stackone.com/connect/oauth2/hubspot/callback?…with query preserved;PUT→ 405; a 70 KB POST → 413 with and withoutContent-Length(chunked). The log showssearchParamKeys: ['code','state','response']and no values.docker build(no Docker daemon on the test machine) and a POST forwarded to the real api.stackone.com.🤖 Generated with Claude Code