fix: remediate production dependency audit findings - #264
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
audrzejq
marked this pull request as ready for review
September 1, 2026 08:29
audrzejq
approved these changes
Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
The production dependency audit failed with critical Auth.js findings in the advanced Polar chatbot example, plus other moderate-or-higher findings in the shared dependency graph. Root
pnpm.overrideswas also ignored by pnpm 10.Approach
next-authbeta.31 example pins to5.0.0-beta.32, resolving@auth/core0.41.3.pnpm-workspace.yaml, where pnpm 10 reads them, and removed the ignored root configuration.The linkify-it and nanoid overrides stay within their existing major versions. An unbounded update broke a chatbot build because linkify-it 6 removed the default export expected by markdown-it.
Acceptance criteria
next-authpins use beta.32 and resolve patched@auth/core.pnpm audit --audit-level moderate --prodexits 0 with no known vulnerabilities.Verification
pnpm install --frozen-lockfilepnpm audit --audit-level moderate --prodpnpm turbo run lint --affected --concurrency=4pnpm turbo run check-types --affected --concurrency=4pnpm turbo run test --affected --concurrency=4pnpm turbo run build --affected --concurrency=4The default-concurrency affected build exceeded the available sandbox memory. It passed with concurrency set to 4.
Deviations
The initial plan used unbounded minimum versions for linkify-it and nanoid. Their overrides were capped to patched versions within the existing majors to keep markdown-it compatible. No application code changed.
Closes #263