Skip to content

Security: Fix audit vulnerabilities + add rate limiting - #29

Open
lupita-hom wants to merge 1 commit into
mainfrom
security/auto-fix-2026-08-17
Open

Security: Fix audit vulnerabilities + add rate limiting#29
lupita-hom wants to merge 1 commit into
mainfrom
security/auto-fix-2026-08-17

Conversation

@lupita-hom

Copy link
Copy Markdown
Collaborator

Summary

Automated security scan — August 17, 2026.

Fixes applied:

Client (npm audit fix):

  • @babel/core — arbitrary file read via sourceMappingURL
  • nanoid — infinite loop with negative/zero size
  • postcss — XSS, path traversal, arbitrary file read (4 CVEs)
  • react-router — RCE, DoS, CSRF, open redirect, XSS (9 CVEs)
  • vite — NTLMv2 hash disclosure, fs.deny bypass on Windows

Server (npm audit fix):

  • body-parser — DoS via invalid limit value
  • esbuild — arbitrary file read on Windows
  • qs/express — DoS via TypeError on null entries

New: Rate limiting (express-rate-limit):

  • General API endpoints: 100 requests / 15 min per IP
  • Auth endpoints: 10 requests / 15 min per IP (brute-force protection)

Result:

Both client and server now report 0 vulnerabilities from npm audit.

- Run npm audit fix on client (postcss, nanoid, react-router, vite, @babel/core)
- Run npm audit fix on server (body-parser, esbuild, qs/express)
- Add express-rate-limit to server:
  - General API: 100 req/15min per IP
  - Auth endpoints: 10 req/15min per IP (brute-force protection)
- All audits now report 0 vulnerabilities
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.

1 participant