Repository navigation
🤖 Note: These release notes were generated by an AI assistant.
We are proud to announce VehicleVault v3.9.0! This minor release delivers a comprehensive Security Hardening pass across authentication, multi-user authorization, file handling, SSRF protection, and PWA caching, alongside modular i18n refactoring contributed by @B0bbyD0llar and Showcase PDF & UI refinements.
✨ What's New
🛡️ 1. Comprehensive Security Hardening
- Authentication, 2FA, OIDC & Session Lifecycle:
- Rejected pre-MFA 2FA temporary tokens (
purpose: '2fa_login') inverifyAccessToken, and added database-backedtoken_version+ role verification so logout, password changes, password resets, and role changes immediately invalidate active JWTs. - Required TOTP second-factor confirmation to disable 2FA or regenerate backup/recovery codes, and blocked
vkv_API keys from managing 2FA. - Added OIDC
id_tokenJWS signature (JWKS),iss,aud,exp, andnonceverification, restricted email matching toemail_verified === true, and enforced 2FA on OIDC logins. - Validated password-reset origins (
PUBLIC_URL/ safe host regex) and invalidated prior unused reset tokens on new requests or completion. - Replaced SQL
LIKEprefix matching in reverse-proxy auth with exact prefix matching (SUBSTR/INSTR) to prevent wildcard matching.
- Rejected pre-MFA 2FA temporary tokens (
- Authorization & Tenant Isolation:
- Enforced
getVehicleAccessacross allMaintenanceControllermutating endpoints,FuelController.rescanReceipt,CalendarService.generateIcs(whenvehicleIdis specified), and HTTP MCP tools (get_vehicle_summary,log_fuel_entry,log_service_entry,check_maintenance_alerts). - Removed
driverrole cross-tenant bypasses inDocumentController,FuelController, andVignetteController, blockedviewerwrites inFuelController.create, and requiredrequireAdminonPOST /api/notifications/check.
- Enforced
- Files, SSRF, Client & Deployment:
- Sanitized
receipt_pathandinvoice_pathwith schema checks andpath.basename()inPdfService.generateDossierandMaintenanceController.attachInvoiceToRecord. - Hardened
TelematicsService.validateSafeExternalUrlagainst loopback, IPv4-mapped IPv6 (including hex notation), DNS rebinding, andredirect: 'error'. - Added ZIP entry count (200), uncompressed size (25 MB), and row/column caps to
TripImportService.readXlsx. - Escaped
contact_emailand serializedlicense_platesafely inShowcaseZipService. - Excluded private
/uploads/{receipts,invoices,documents}/paths from the Service Worker cache and cleared Cache Storage on logout. - Restricted default
CORS_ORIGIN=*to same-origin, scopedtrust proxytoTRUST_PROXY_HEADERS, and removed hardcoded fallbackJWT_SECRETplaceholders fromdocker-compose.yml.
- Sanitized
🌐 2. Modular i18n Refactoring (#12, #17, #18, #19, #20 by @B0bbyD0llar)
- Migrated all remaining inline
lang === 'nl'strings in Fuel, Importer, ReceiptScannerModal, Auth / Login / Register / Password Reset, and Settings (General / AI / Backup) intoclient/src/i18n/locales/{nl,en,de}/. - Upgraded the login page language switcher to dynamically list all available locales using
Intl.DisplayNames.
📄 3. Showcase PDF & Navigation Improvements
- Refined the Showcase PDF export layout with a compact header banner, warranty spotlight banner, structured maintenance history table, clean hairline spec dividers, and a scannable QR code linking to the live showcase page.
- Fixed RDW import detection (
herkomst), preserved multi-paragraph showcase descriptions, and added the missing Tires tab to the mobile bottom navigation bar.