René's URL Explorer Experiment


Title: fix(nextjs): isolate middleware request data per request by dominic-clerk · Pull Request #9723 · clerk/javascript · GitHub

Open Graph Title: fix(nextjs): isolate middleware request data per request by dominic-clerk · Pull Request #9723 · clerk/javascript

X Title: fix(nextjs): isolate middleware request data per request by dominic-clerk · Pull Request #9723 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - fix(nextjs): isolate middleware request data per request by dominic-clerk · Pull Request #9723 · clerk/javascript

Open Graph Description: Description middleware-storage.ts exported a single module-global Map that every AsyncLocalStorage.run() in clerkMiddleware was handed, so the store provided no per-request isolation and its single...

X Description: Description middleware-storage.ts exported a single module-global Map that every AsyncLocalStorage.run() in clerkMiddleware was handed, so the store provided no per-request isolation and its single...

Opengraph URL: https://github.com/clerk/javascript/pull/9723

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:ddb8a395-680b-fbd0-77b9-5c9f4f2e1300
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id914A:52BC4:616AF2:880D86:6AF9C422
html-safe-nonce0df11f8f2b0b91c38450c2db60515bafc44a68e268c6756719cf600c4d31ec51
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTRBOjUyQkM0OjYxNkFGMjo4ODBEODY6NkFGOUM0MjIiLCJ2aXNpdG9yX2lkIjoiNzU0MDAzNDA0MzA2MDUzNjM1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf25c5cbd22fcafcd13821f99ffc603b3f7bbec6dd45b288793ac4c032054f902
hovercard-subject-tagpull_request:4506800223
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/clerk/javascript/9723/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/275d7bc351bf9a1f4d3fd6ea26288bff852a6a0a8188c3daee749e3ac1653ff8/clerk/javascript/pull/9723
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/275d7bc351bf9a1f4d3fd6ea26288bff852a6a0a8188c3daee749e3ac1653ff8/clerk/javascript/pull/9723
og:image:altDescription middleware-storage.ts exported a single module-global Map that every AsyncLocalStorage.run() in clerkMiddleware was handed, so the store provided no per-request isolation and its single...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedominic-clerk
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
go-importgithub.com/clerk/javascript git https://github.com/clerk/javascript.git
octolytics-dimension-user_id49538330
octolytics-dimension-user_loginclerk
octolytics-dimension-repository_id438331492
octolytics-dimension-repository_nwoclerk/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id438331492
octolytics-dimension-repository_network_root_nwoclerk/javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/9723#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F9723
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F9723
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/pull/9723
Reloadhttps://github.com/clerk/javascript/pull/9723
Reloadhttps://github.com/clerk/javascript/pull/9723
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues44 (44)https://github.com/clerk/javascript/issues
Pull requests109 (109)https://github.com/clerk/javascript/pulls
Discussionshttps://github.com/clerk/javascript/discussions
Actionshttps://github.com/clerk/javascript/actions
Security and quality6 (6)https://github.com/clerk/javascript/security
Insightshttps://github.com/clerk/javascript/pulse
https://github.com/clerk/javascript
dominic-clerkhttps://github.com/dominic-clerk
mainhttps://github.com/clerk/javascript/tree/main
dominic/sec-366-cross-request-credential-confusion-in-clerknextjs-middlewarehttps://github.com/clerk/javascript/tree/dominic/sec-366-cross-request-credential-confusion-in-clerknextjs-middleware
Conversationhttps://github.com/clerk/javascript/pull/9723
Commits1 (1)https://github.com/clerk/javascript/pull/9723/commits
Checkshttps://github.com/clerk/javascript/pull/9723/checks
Files changedhttps://github.com/clerk/javascript/pull/9723/files
fix(nextjs): isolate middleware request data per requesthttps://github.com/clerk/javascript/pull/9723#top
dominic-clerkhttps://github.com/dominic-clerk
mainhttps://github.com/clerk/javascript/tree/main
dominic/sec-366-cross-request-credential-confusion-in-clerknextjs-middlewarehttps://github.com/clerk/javascript/tree/dominic/sec-366-cross-request-credential-confusion-in-clerknextjs-middleware
https://github.com/dominic-clerk
dominic-clerkhttps://github.com/dominic-clerk
Sep 11, 2026https://github.com/clerk/javascript/pull/9723#issue-5425462800
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
JSDoc commentshttps://jsdoc.app/about-getting-started.html
Documentationhttps://github.com/clerk/clerk-docs
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
Sep 11, 2026https://github.com/clerk/javascript/pull/9723#issuecomment-5635958021
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
Vercel for GitHubhttps://vercel.link/github-learn-more
https://vercel.com/clerk-production/clerk-js-sandbox
clerk-js-sandboxhttps://vercel.com/clerk-production/clerk-js-sandbox
https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667
Readyhttps://vercel.com/clerk-production/clerk-js-sandbox/BKQwjkVjoetmhqfv9iwAy7uY8zua
Previewhttps://clerk-js-sandbox-git-dominic-sec-366-cross-request-crede-a7c961.clerkstage.dev
https://vercel.com/clerk-production/swingset
swingsethttps://vercel.com/clerk-production/swingset
https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667
Readyhttps://vercel.com/clerk-production/swingset/3sfEr6yCcb5pxK6JTU3wzL5XBRkk
Previewhttps://swingset-git-dominic-sec-366-cross-request-credential-co-14e204.clerkstage.dev
https://vercel.com/vercel-agent/request-review?owner=clerk&repo=javascript&pr=9723
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Sep 11, 2026https://github.com/clerk/javascript/pull/9723#issuecomment-5635958703
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
81a1ca2https://github.com/clerk/javascript/commit/81a1ca2d279e4683bcd804cc396cf19d44587b28
Click here to learn what changesets arehttps://changesets.dev/faq
Click here if you're a maintainer who wants to add another changeset to this PRhttps://github.com/clerk/javascript/new/dominic/sec-366-cross-request-credential-confusion-in-clerknextjs-middleware?filename=.changeset/fair-beans-hide.md&value=---%0A%22%40clerk%2Fnextjs%22%3A%20patch%0A---%0A%0Afix(nextjs)%3A%20isolate%20middleware%20request%20data%20per%20request%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Sep 11, 2026https://github.com/clerk/javascript/pull/9723#issuecomment-5635960630
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
https://app.coderabbit.ai/change-stack/clerk/javascript/pull/9723#gh-light-mode-only
https://app.coderabbit.ai/change-stack/clerk/javascript/pull/9723#gh-dark-mode-only
98e7d0ahttps://github.com/clerk/javascript/commit/98e7d0a67f907546b5a64a71c7631105b78df39f
b8f32f4https://github.com/clerk/javascript/commit/b8f32f4b27eeb21327b67927e0320fbecefc22af
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
https://github.com/dominic-clerk
dominic-clerkhttps://github.com/dominic-clerk
wobsorianohttps://github.com/wobsoriano
September 11, 2026 14:28https://github.com/clerk/javascript/pull/9723#event-30978200822
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
Sep 11, 2026https://github.com/clerk/javascript/pull/9723#event-30978202073
https://github.com/apps/pkg-pr-new
pkg-pr-newhttps://github.com/apps/pkg-pr-new
Sep 11, 2026https://github.com/clerk/javascript/pull/9723#issuecomment-5635983501
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
Open in StackBlitzhttps://pkg.pr.new/template/d57fbac7-ee29-4fac-994b-f5c275996e6b
81a1ca2https://github.com/clerk/javascript/runs/103963218425
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 11, 2026https://github.com/clerk/javascript/pull/9723#issuecomment-5635995280
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
Break Checkhttps://github.com/clerk/break-check
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
https://github.com/dominic-clerk
https://github.com/claude
fix(nextjs): isolate middleware request data per requesthttps://github.com/clerk/javascript/pull/9723/commits/81a1ca2d279e4683bcd804cc396cf19d44587b28
81a1ca2https://github.com/clerk/javascript/pull/9723/commits/81a1ca2d279e4683bcd804cc396cf19d44587b28
https://github.com/dominic-clerk
dominic-clerkhttps://github.com/dominic-clerk
force-pushedhttps://github.com/clerk/javascript/compare/b8f32f4b27eeb21327b67927e0320fbecefc22af..81a1ca2d279e4683bcd804cc396cf19d44587b28
b8f32f4https://github.com/clerk/javascript/commit/b8f32f4b27eeb21327b67927e0320fbecefc22af
81a1ca2https://github.com/clerk/javascript/commit/81a1ca2d279e4683bcd804cc396cf19d44587b28
Compare https://github.com/clerk/javascript/compare/b8f32f4b27eeb21327b67927e0320fbecefc22af..81a1ca2d279e4683bcd804cc396cf19d44587b28
September 14, 2026 11:47https://github.com/clerk/javascript/pull/9723#event-31097422807
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-mit7fmqle.clerkstage.dev
Preview – clerk-js-sandboxhttps://clerk-js-sandbox-mit7fmqle.clerkstage.dev
September 14, 2026 11:48https://github.com/clerk/javascript/pull/9723#event-31097468119
View deploymenthttps://clerk-js-sandbox-mit7fmqle.clerkstage.dev
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://swingset-d0lxzbfc3.clerkstage.dev
Preview – swingsethttps://swingset-d0lxzbfc3.clerkstage.dev
September 14, 2026 11:51https://github.com/clerk/javascript/pull/9723#event-31097583556
View deploymenthttps://swingset-d0lxzbfc3.clerkstage.dev
https://github.com/Ephem
Ephemhttps://github.com/Ephem
Sep 16, 2026 https://github.com/clerk/javascript/pull/9723#pullrequestreview-5219913219
View reviewed changes https://github.com/clerk/javascript/pull/9723/files/81a1ca2d279e4683bcd804cc396cf19d44587b28
https://github.com/dominic-clerk
dominic-clerkhttps://github.com/dominic-clerk
5e2a46fhttps://github.com/clerk/javascript/commit/5e2a46f2c9944ca6ba129b2db3a4d3a2937d26cf
Sep 16, 2026https://github.com/clerk/javascript/pull/9723#event-31232837374
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
https://github.com/dominic-clerk
dominic-clerkhttps://github.com/dominic-clerk
September 16, 2026 09:05https://github.com/clerk/javascript/pull/9723#event-31232840245
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Sep 16, 2026 https://github.com/clerk/javascript/pull/9723#ref-pullrequest-5472509137
ci(repo): Version packages #9782 https://github.com/clerk/javascript/pull/9782
https://github.com/The-Obstacle-Is-The-Way
The-Obstacle-Is-The-Wayhttps://github.com/The-Obstacle-Is-The-Way
Oct 6, 2026 https://github.com/clerk/javascript/pull/9723#ref-pullrequest-5732465340
Bundle #1441's nine dependency updates, hold lint-staged at 17.5.1 (DEBT-514), and archive DEBT-506 The-Obstacle-Is-The-Way/naltrexone-university#1409 https://github.com/The-Obstacle-Is-The-Way/naltrexone-university/pull/1409
Deployedhttps://swingset-d0lxzbfc3.clerkstage.dev
vercel[bot]https://github.com/apps/vercel
View deployment https://swingset-d0lxzbfc3.clerkstage.dev
Deployedhttps://clerk-js-sandbox-mit7fmqle.clerkstage.dev
vercel[bot]https://github.com/apps/vercel
View deployment https://clerk-js-sandbox-mit7fmqle.clerkstage.dev
https://github.co/hiddenchars
https://github.com/clerk/javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F9723
https://github.com/Ephem
Ephem https://github.com/Ephem
https://github.com/clerk/javascript/pull/9723/files/81a1ca2d279e4683bcd804cc396cf19d44587b28
https://github.com/wobsoriano
wobsoriano https://github.com/wobsoriano
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
Please reload this pagehttps://github.com/clerk/javascript/pull/9723
https://github.com/dominic-clerk
https://github.com/Ephem
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.