Skip to content

v1.1.0

Choose a tag to compare

@ProMehedi ProMehedi released this 03 Jan 13:32
· 19 commits to main since this release

Security Improvements:

  • πŸ”’ Fixed critical mass assignment vulnerability - isAdmin can no longer be set during registration
  • πŸ” Added JWT token expiration (7 days) with proper validation
  • πŸ›‘οΈ Implemented rate limiting middleware to prevent brute force attacks
  • πŸ”’ Added secure headers middleware (XSS, clickjacking, MIME sniffing protection)
  • πŸ›‘οΈ Added CSRF protection for production environments
  • πŸ” Fixed JWT secret validation - now throws error if missing
  • πŸ”’ Fixed password hash leak in profile update response
  • πŸ›‘οΈ Improved CORS configuration with environment-based origin restrictions
  • πŸ” Fixed error handler stack trace exposure logic
  • βœ… Added comprehensive input validation (email format, password length)

Code Quality:

  • πŸ“¦ Removed deprecated @types/mongoose dependency
  • πŸ”„ Standardized environment variable access to process.env
  • βœ… Improved TypeScript types and error handling
  • πŸ”„ Updated to modern Hono JWT API (sign/verify instead of deprecated Jwt)
  • πŸ“ Enhanced error messages and validation feedback

Dependencies:

  • Updated to Hono v4.11.3
  • Mongoose v9.1.1 (includes built-in TypeScript types)