Skip to content

chore(deps): use uuid ^11.1.1 to keep CommonJS support#13466

Merged
gustavovalverde merged 2 commits into
v4from
chore/v4-uuid-cjs-compat
Jul 20, 2026
Merged

chore(deps): use uuid ^11.1.1 to keep CommonJS support#13466
gustavovalverde merged 2 commits into
v4from
chore/v4-uuid-cjs-compat

Conversation

@gustavovalverde

@gustavovalverde gustavovalverde commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

uuid 14 ships only ESM entry points. next-auth and the adapters in this branch compile to CommonJS, so the published artifacts would throw ERR_REQUIRE_ESM on Node versions below 20.19 as soon as next-auth/jwt or an adapter loads. The mikro-orm adapter's Jest suite fails the same way at module load, so the package currently has zero executable tests.

uuid 11.1.1 is both the first version patched for GHSA-w5hq-g745-h8pq and the last major with a dual CJS/ESM build, so it keeps the advisory resolved without cutting off CommonJS consumers. The vulnerable code path (v3/v5/v6 with a caller-supplied buffer) is not used here; every call site is an argument-less v4().

Also regenerates the mikro-orm adapter's schema snapshots. They were written against an older @mikro-orm/core 5.x; the lockfile has since moved to 5.9.8, which adds an ignoreSchemaChanges column property and emits a default for the unique email column. The mismatch only surfaces now because this branch makes the suite runnable again.

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
auth-docs Error Error Jul 20, 2026 6:02pm
next-auth-docs Ready Ready Preview, Comment Jul 20, 2026 6:02pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
proxy Ignored Ignored Jul 20, 2026 6:02pm

Request Review

@github-actions github-actions Bot added adapters Changes related to the core code concerning database adapters mikro-orm @auth/mikro-orm-adapter neo4j @auth/neo4j-adapter upstash-redis @auth/upstash-redis-adapter next-auth labels Jul 20, 2026
@socket-security

socket-security Bot commented Jul 20, 2026

Copy link
Copy Markdown

Dependency limit exceeded — report not shown.

This pull request scan exceeded the 10,000-dependency limit applied to this scan, so the results are incomplete and may be inaccurate. To avoid reporting false positives, Socket has not posted a report.

Upgrade your plan to raise the dependency limit and get complete reports, or view the partial scan in the dashboard.

Socket is always free for open source. If this is a non-commercial open source project, contact us to request a free Team account.

@gustavovalverde
gustavovalverde merged commit db7e27d into v4 Jul 20, 2026
8 of 10 checks passed
@gustavovalverde
gustavovalverde deleted the chore/v4-uuid-cjs-compat branch July 20, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adapters Changes related to the core code concerning database adapters mikro-orm @auth/mikro-orm-adapter neo4j @auth/neo4j-adapter next-auth upstash-redis @auth/upstash-redis-adapter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant