← Back to Pull requests

Security re-review fixes and verified client compatibility #11

Closed
unknown closed this pull request without merging on Nov 22, 2026 19:37 UTC
View on GitHub
unknown unknown commented on Nov 22, 2026 19:35 UTC
Author

Security re-review


I rechecked:
  • SSRF and redirects: every hop is re-checked, and the IP is checked at connect time

  • DNS rebinding and Host validation

  • private IP blocking

  • size limits and input validation

  • rate-limit bypasses and resource exhaustion

  • secret exposure

  • dependencies: npm audit reports 0, including dev dependencies

  • MCP compliance

  • prompt injection
  • Fixed, each with a regression test:
    1. Medium: /j/<id>, /api/job-brief and the MCP lookup tools called the talent API for any id without a per-caller limit. They now share one 600-an-hour per-caller upstream budget. Speedrun briefs need no lookup, so they aren't limited.
    2. Low: the brief routes trusted Content-Length. Bodies are now read through readCapped, so a chunked body is capped too.
    3. Low: brief text is model-written from public posts. The server instructions now tell agents to treat it as content, never as instructions.
    4. Fix to the fix: job pages share one cached, rate-limited lookup between generateMetadata and the page, so the limit can't be skipped.

    These are audit findings 21–24. Finding 22 (validate before limiting) shipped in PR #7.

    Client compatibility (eval/results/conformance.md)


  • Official MCP TypeScript SDK 1.32.2 client, local: 10/10 pass.

  • - Tool results are validated by the SDK against outputSchema; I confirmed in its source that callTool does this.
    - Error handling behaves correctly.
    - brief_for_job progress notifications reach onprogress in increasing order, then the final result arrives.
  • Official conformance suite: 8 pass, covering every applicable scenario. It also runs in CI.

  • Claude Code 2.1.330, against production: the health check shows Connected, and a real search_roles call through claude -p returned 93 roles.

  • Version negotiation: all four supported versions are echoed back correctly.

  • Not verified: Claude Desktop, Cursor, ChatGPT. Manual steps are in the doc.
  • 247 tests pass.

    🤖 Generated with Claude Code

    Diff: 257 lines (+192 / -65) across 3 files Reviewer: cursor[bot] Review duration: 1m
    All Vouch review confidence checks passed
    Residual risk 0.43 = Change Risk (0.62) × (1 − Review Confidence (0.31)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.62 · 257 lines diff across 3 files
    0.62
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 26% · Reviewer familiarity: 35%
    30%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.332
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.062
    Real PR Conversation Timeline
    1 comments
    "Review active on #11"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 30.9% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 62.3% (MEDIUM) · Higher = larger blast radius
    62.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 30.9% · Lower = rushed or shallow review
    30.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 43% · Moderate risk
    43%