Skip to content

v2.1.0 — Security Hardening

Choose a tag to compare

@vinaybhosle vinaybhosle released this 22 Mar 20:42
· 12 commits to main since this release

Security Hardening Release

12 vulnerability fixes across authentication, payment replay, SSRF, input validation, and CI/CD security.

CRITICAL

  • Signature body-binding: Legacy fallback deprecated (30-day sunset). Signatures without body hash now emit X-AgentStamp-Deprecation header.

HIGH

  • Payment replay protection: Dedup hashes persisted to SQLite — survives server restarts (24hr TTL)
  • GitHub Action injection fix: Inputs use environment variables instead of direct shell interpolation
  • SSRF hardening: IPv6-mapped IPv4, decimal/hex IP, and DNS rebinding protection on webhook registration
  • Startup validation: Server refuses to start without required secrets (BLIND_TOKEN_SECRET, IP_HASH_SALT)
  • Registry rate limiting: Browse, search, and leaderboard endpoints now rate-limited (60 req/min)
  • Free-tier resilience: Free stamp/registration endpoints remain available when x402 payment service is down

MEDIUM

  • Webhook ownership uses wallet linking for list/delete operations
  • Prototype pollution guard on metadata input (__proto__, constructor, prototype stripped)
  • Database file permissions hardened to 0600 on startup
  • CI pipeline fails on HIGH+ npm audit vulnerabilities
  • Admin and analytics authentication keys disambiguated

Infrastructure

  • Sentry error monitoring instrumentation added
  • Shared timingSafeCompare utility extracted

211 unit tests passed. E2E: flow14 (68/68) + flow15 (42/42) — 0 regressions.