Highlights
Information Disclosure: 7 prior fixes. Scrutinize any change in this area.
src/jwt.interceptor.ts: most-fixed (4 issues). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Information Disclosure: Inverted boolean validation logic and improper default fallbacks caused the interceptor to attach JWTs directly to non-whitelisted and blacklisted external endpoints, risking severe credential exposure.
Information Disclosure: Fragile domain matching logic (comparing host instead of hostname) allowed port differences to break white/blacklist comparisons, potentially leading to unauthorized token sending.
Auth Bypass: Failure to treat tokens with missing or unparseable expiration dates as expired resulted in an authentication bypass where invalid tokens were accepted.