René's URL Explorer Experiment


Title: fix(express): prevent auth bypass from foreign req.auth values by jacekradko · Pull Request #8804 · clerk/javascript · GitHub

Open Graph Title: fix(express): prevent auth bypass from foreign req.auth values by jacekradko · Pull Request #8804 · clerk/javascript

X Title: fix(express): prevent auth bypass from foreign req.auth values by jacekradko · Pull Request #8804 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - fix(express): prevent auth bypass from foreign req.auth values by jacekradko · Pull Request #8804 · clerk/javascript

Open Graph Description: clerkMiddleware() opened its handler by bailing out early if req.auth was already truthy, to avoid re-authenticating when the middleware runs twice. The problem is that req.auth is a property name ...

X Description: clerkMiddleware() opened its handler by bailing out early if req.auth was already truthy, to avoid re-authenticating when the middleware runs twice. The problem is that req.auth is a property name ...

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

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:5bb62670-12ee-421e-a7f9-21f9dca4a6ed
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9B26:8748A:594F948:76FABBD:6AFACBDB
html-safe-noncef11837bc0fc5ade02c7bf27dde2a8b2e52f545e33ff9f63b3e5272468bc32525
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjI2Ojg3NDhBOjU5NEY5NDg6NzZGQUJCRDo2QUZBQ0JEQiIsInZpc2l0b3JfaWQiOiI4MDI0NzA2ODY4ODkyNTg0OTIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6c28f33fb9fc4b874c557b18a85715c1a907c18235fb60034766d95caab69a82
hovercard-subject-tagpull_request:3840604840
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/8804/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/8980223bd817d44a303605393a600dd999f96f360e36b61199bb1eafca1c997a/clerk/javascript/pull/8804
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8980223bd817d44a303605393a600dd999f96f360e36b61199bb1eafca1c997a/clerk/javascript/pull/8804
og:image:altclerkMiddleware() opened its handler by bailing out early if req.auth was already truthy, to avoid re-authenticating when the middleware runs twice. The problem is that req.auth is a property name ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejacekradko
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/8804#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F8804
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%2F8804
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/8804
Reloadhttps://github.com/clerk/javascript/pull/8804
Reloadhttps://github.com/clerk/javascript/pull/8804
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues44 (44)https://github.com/clerk/javascript/issues
Pull requests112 (112)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
jacekradkohttps://github.com/jacekradko
mainhttps://github.com/clerk/javascript/tree/main
jacek/sdk-76-express-auth-bypasshttps://github.com/clerk/javascript/tree/jacek/sdk-76-express-auth-bypass
Conversationhttps://github.com/clerk/javascript/pull/8804
Commits3 (3)https://github.com/clerk/javascript/pull/8804/commits
Checkshttps://github.com/clerk/javascript/pull/8804/checks
Files changedhttps://github.com/clerk/javascript/pull/8804/files
fix(express): prevent auth bypass from foreign req.auth valueshttps://github.com/clerk/javascript/pull/8804#top
jacekradkohttps://github.com/jacekradko
mainhttps://github.com/clerk/javascript/tree/main
jacek/sdk-76-express-auth-bypasshttps://github.com/clerk/javascript/tree/jacek/sdk-76-express-auth-bypass
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
Jun 10, 2026https://github.com/clerk/javascript/pull/8804#issue-4632577236
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
fix(express): prevent auth bypass from foreign req.auth valueshttps://github.com/clerk/javascript/pull/8804/commits/a11a860899d1e09e688cc2e6f8cf7974c31e0d70
a11a860https://github.com/clerk/javascript/pull/8804/commits/a11a860899d1e09e688cc2e6f8cf7974c31e0d70
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
Jun 10, 2026https://github.com/clerk/javascript/pull/8804#issuecomment-4671747689
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
Vercel for GitHubhttps://vercel.link/github-learn-more
clerk-js-sandboxhttps://vercel.com/clerk-production/clerk-js-sandbox
https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667
Readyhttps://vercel.com/clerk-production/clerk-js-sandbox/3HqdmCBkbFZuWGYcxwmrmnWkvUZs
Previewhttps://clerk-js-sandbox-git-jacek-sdk-76-express-auth-bypass.clerkstage.dev
Commenthttps://vercel.live/open-feedback/clerk-js-sandbox-git-jacek-sdk-76-express-auth-bypass.clerkstage.dev?via=pr-comment-feedback-link
https://vercel.com/vercel-agent/request-review?owner=clerk&repo=javascript&pr=8804
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Jun 10, 2026https://github.com/clerk/javascript/pull/8804#issuecomment-4671748487
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
09aaa45https://github.com/clerk/javascript/commit/09aaa45f227b5de032be57b95b8a222029338bea
Click here to learn what changesets arehttps://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md
Click here if you're a maintainer who wants to add another changeset to this PRhttps://github.com/clerk/javascript/new/jacek/sdk-76-express-auth-bypass?filename=.changeset/dirty-paths-bet.md&value=---%0A%22%40clerk%2Fexpress%22%3A%20patch%0A---%0A%0Afix(express)%3A%20prevent%20auth%20bypass%20from%20foreign%20req.auth%20values%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
express https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aexpress
Jun 10, 2026https://github.com/clerk/javascript/pull/8804#event-26581661056
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jun 10, 2026https://github.com/clerk/javascript/pull/8804#issuecomment-4671749148
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
https://app.coderabbit.ai/change-stack/clerk/javascript/pull/8804?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack
df4619fhttps://github.com/clerk/javascript/commit/df4619f170912bd9a4dc02ccbc90802761c05ac0
a11a860https://github.com/clerk/javascript/commit/a11a860899d1e09e688cc2e6f8cf7974c31e0d70
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jun 10, 2026https://github.com/clerk/javascript/pull/8804#issuecomment-4671785159
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
Break Checkhttps://github.com/clerk/break-check
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
https://github.com/apps/pkg-pr-new
pkg-pr-newhttps://github.com/apps/pkg-pr-new
Jun 10, 2026https://github.com/clerk/javascript/pull/8804#issuecomment-4671786038
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
Open in StackBlitzhttps://pkg.pr.new/template/9671fdf5-fa2a-4f08-b28e-b62ec9aceda1
09aaa45https://github.com/clerk/javascript/runs/80618688616
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
https://github.com/wobsoriano
wobsorianohttps://github.com/wobsoriano
Jun 10, 2026 https://github.com/clerk/javascript/pull/8804#pullrequestreview-4469265224
View reviewed changes https://github.com/clerk/javascript/pull/8804/files/09aaa45f227b5de032be57b95b8a222029338bea
wobsorianohttps://github.com/wobsoriano
https://github.com/clerk/javascript/pull/8804#pullrequestreview-4469265224
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
packages/express/src/authenticateRequest.tshttps://github.com/clerk/javascript/pull/8804/files/a11a860899d1e09e688cc2e6f8cf7974c31e0d70#diff-25b0edb50261ced831dcf2e842fa5b11bcf8584e6c50ae01c25ae46dddb7cd9b
wobsorianohttps://github.com/wobsoriano
Jun 10, 2026https://github.com/clerk/javascript/pull/8804#discussion_r3389529524
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
packages/express/src/utils.tshttps://github.com/clerk/javascript/pull/8804/files/a11a860899d1e09e688cc2e6f8cf7974c31e0d70#diff-2a01b19ccbf467ad4943392ef7a9e6c5608b41f63d9252574dc8283702d86b87
wobsorianohttps://github.com/wobsoriano
Jun 10, 2026https://github.com/clerk/javascript/pull/8804#discussion_r3389531433
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
https://github.com/wobsoriano
Merge branch 'main' into jacek/sdk-76-express-auth-bypasshttps://github.com/clerk/javascript/pull/8804/commits/bae2f8a69b005f95a8c2b192add53cdb58443107
bae2f8ahttps://github.com/clerk/javascript/pull/8804/commits/bae2f8a69b005f95a8c2b192add53cdb58443107
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-1yklpu2p4.clerkstage.dev
Previewhttps://clerk-js-sandbox-1yklpu2p4.clerkstage.dev
June 10, 2026 16:11https://github.com/clerk/javascript/pull/8804#event-26583576641
View deploymenthttps://clerk-js-sandbox-1yklpu2p4.clerkstage.dev
Merge branch 'main' into jacek/sdk-76-express-auth-bypasshttps://github.com/clerk/javascript/pull/8804/commits/09aaa45f227b5de032be57b95b8a222029338bea
09aaa45https://github.com/clerk/javascript/pull/8804/commits/09aaa45f227b5de032be57b95b8a222029338bea
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-alo09t5t0.clerkstage.dev
Previewhttps://clerk-js-sandbox-alo09t5t0.clerkstage.dev
June 10, 2026 17:14https://github.com/clerk/javascript/pull/8804#event-26586183651
View deploymenthttps://clerk-js-sandbox-alo09t5t0.clerkstage.dev
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
5a7b5c4https://github.com/clerk/javascript/commit/5a7b5c4a885ebdda89150a4e1cbbaa726c3f07cc
Jun 10, 2026https://github.com/clerk/javascript/pull/8804#event-26587862314
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
June 10, 2026 17:55https://github.com/clerk/javascript/pull/8804#event-26587864312
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Jun 10, 2026 https://github.com/clerk/javascript/pull/8804#ref-pullrequest-4632464215
ci(repo): Version packages #8803 https://github.com/clerk/javascript/pull/8803
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jul 20, 2026 https://github.com/clerk/javascript/pull/8804#ref-pullrequest-4927944683
backend server created Ayushman8/ecommerce-app#13 https://github.com/Ayushman8/ecommerce-app/pull/13
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Aug 19, 2026 https://github.com/clerk/javascript/pull/8804#ref-pullrequest-5192673617
feat(server): add authentication middleware for protected routes sameerjohn1/project-management-platform#12 https://github.com/sameerjohn1/project-management-platform/pull/12
Deployedhttps://clerk-js-sandbox-alo09t5t0.clerkstage.dev
vercel[bot]https://github.com/apps/vercel
View deployment https://clerk-js-sandbox-alo09t5t0.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%2F8804
https://github.com/wobsoriano
wobsoriano https://github.com/wobsoriano
https://github.com/clerk/javascript/pull/8804/files/09aaa45f227b5de032be57b95b8a222029338bea
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
express https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aexpress
Please reload this pagehttps://github.com/clerk/javascript/pull/8804
https://github.com/jacekradko
https://github.com/wobsoriano
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.