Skip to content

fix(sec): apply authMiddleware to userRoutes router (#11396) - #11649

Open
jihadMo wants to merge 1 commit into
SecureBananaLabs:mainfrom
jihadMo:fix/user-routes-auth-middleware
Open

fix(sec): apply authMiddleware to userRoutes router (#11396)#11649
jihadMo wants to merge 1 commit into
SecureBananaLabs:mainfrom
jihadMo:fix/user-routes-auth-middleware

Conversation

@jihadMo

@jihadMo jihadMo commented Aug 8, 2026

Copy link
Copy Markdown

Resolves #11396 (refs #743).

Applies authMiddleware in apps/api/src/routes/userRoutes.js to require JWT authentication for /api/users endpoints, preventing unauthenticated user enumeration and creation, backed by unit test suite in apps/api/src/routes/user-auth.test.js.

github-actions Bot added a commit that referenced this pull request Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: User routes should require authentication

1 participant