Security: Fix audit vulnerabilities + add rate limiting - #29
Open
lupita-hom wants to merge 1 commit into
Open
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Automated security scan — August 17, 2026.
Fixes applied:
Client (npm audit fix):
@babel/core— arbitrary file read via sourceMappingURLnanoid— infinite loop with negative/zero sizepostcss— 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 WindowsServer (npm audit fix):
body-parser— DoS via invalid limit valueesbuild— arbitrary file read on Windowsqs/express— DoS via TypeError on null entriesNew: Rate limiting (express-rate-limit):
Result:
Both client and server now report 0 vulnerabilities from
npm audit.