Skip to content

fix(security): address vulnerabilities and implement security best practices#629

Open
philster wants to merge 1 commit into
bettergovph:mainfrom
philster:fix/security-vulns
Open

fix(security): address vulnerabilities and implement security best practices#629
philster wants to merge 1 commit into
bettergovph:mainfrom
philster:fix/security-vulns

Conversation

@philster
Copy link
Copy Markdown

@philster philster commented May 5, 2026

  • Add security headers (CSP, X-Frame-Options, HSTS, etc.) via public/_headers
  • Fix passive scroll listener in SelectPicker for better performance
  • Add ErrorBoundary component for graceful error handling
  • Configure hidden source maps for production builds
  • Update dependencies to fix critical vulnerabilities:
    • react-router-dom ^6.22.2 → ^6.30.2 (XSS fix)
    • recharts ^2.15.3 → ^2.15.4
    • i18next-http-backend ^3.0.2 → ^3.0.5 (path traversal fix)
    • typescript-eslint ^8.3.0 → ^8.59.2 (compatibility)

Closes #630

…actices

  - Add security headers (CSP, X-Frame-Options, HSTS, etc.) via public/_headers
  - Fix passive scroll listener in SelectPicker for better performance
  - Add ErrorBoundary component for graceful error handling
  - Configure hidden source maps for production builds
  - Update dependencies to fix critical vulnerabilities:
    - react-router-dom ^6.22.2 → ^6.30.2 (XSS fix)
    - recharts ^2.15.3 → ^2.15.4
    - i18next-http-backend ^3.0.2 → ^3.0.5 (path traversal fix)
    - typescript-eslint ^8.3.0 → ^8.59.2 (compatibility)

  Reduces vulnerabilities from 33 (18 HIGH) to 4 (all MODERATE, dev-only)
@DaijobuDes DaijobuDes added security dependencies Pull requests that update a dependency file labels May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security vulnerabilities and missing best practices

2 participants