mirror of
https://github.com/Sea-Haven-Industries/sh-mcp.git
synced 2026-10-07 16:18:58 +00:00
extractBearerToken matched /^Bearer\s+(.+)$/ — \s and . both match a space, so the two quantifiers overlap and a crafted header can drive polynomial backtracking. Require the capture to start with a non-whitespace char (/^Bearer\s+(\S.*)$/), removing the ambiguity → linear match. Behavior is unchanged for real tokens; +2 regression tests. |
||
|---|---|---|
| .. | ||
| calendar | ||
| gmail | ||
| google-maps | ||
| internal-data | ||
| knowledge-base | ||
| payments | ||
| qbo | ||
| reminders | ||
| shared | ||
| tasks | ||
| .gitkeep | ||