Fix JWT security issues in signaling and alert servers (FRE-4497)

- Replace custom JWT parser with jsonwebtoken library (timing-safe HMAC)
- Prefer Authorization header over URL query for token extraction
- Add jsonwebtoken + @types/jsonwebtoken to server dependencies

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-05-01 09:04:28 -04:00
parent ec4565f44c
commit 3192d1a779
4 changed files with 192 additions and 50 deletions

View File

@@ -1,6 +1,8 @@
{
"dependencies": {
"@types/jsonwebtoken": "^9.0.10",
"@types/ws": "^8.18.1",
"jsonwebtoken": "^9.0.3",
"ws": "^8.20.0"
}
}