Skip to content

Bug: Rate limiter applies to Stripe webhook endpoint causing missed webhook events #356

Description

@Aamod-Dev

File: BACKEND/app.js (lines 66, 69)

Severity: LOW

Problem: app.use('/api', limiter) registers before the webhook route. Stripe sends webhook events that could be rate-limited if multiple events fire in quick succession, causing missed order processing.

Fix: Register the webhook route before the rate limiter, or exclude the webhook path from rate limiting.

Metadata

Metadata

Assignees

Labels

backendFor changes related to the Express server, API routes, or MongoDB modelsbugSomething isn't workingsecurityFor issues related to vulnerabilities (like updating an out-of-date npm package)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions