P2: express.json() middleware runs on all requests including GET #14

Open
opened 2026-05-13 20:40:04 -05:00 by null · 0 comments
Owner

Severity: P2 — Medium

File: server/index.js ~line 256

Problem: express.json() middleware runs for all requests including GET /api/health. GET requests with body may cause unexpected behavior.

Impact: Minor — violates REST conventions, wastes minimal resources.

Fix: Move express.json() to only apply to POST routes, or use express.json() conditionally.

## Severity: P2 — Medium **File:** server/index.js ~line 256 **Problem:** express.json() middleware runs for all requests including GET /api/health. GET requests with body may cause unexpected behavior. **Impact:** Minor — violates REST conventions, wastes minimal resources. **Fix:** Move express.json() to only apply to POST routes, or use express.json() conditionally.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: null/Queue-North-Website#14
No description provided.