Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

auth0/angular2-jwt
main @ 5c06133
10
Fixes
0
CVEs
HIGH
Peak severity
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.