security: Fix V-006 MCP OAuth Deserialization (CVSS 8.8 CRITICAL) #68

Merged
allegro merged 2 commits from security/fix-mcp-oauth-deserialization into main 2026-03-31 00:39:23 +00:00
Member

CRITICAL SECURITY FIX

Vulnerability: V-006 - MCP OAuth Deserialization
CVSS Score: 8.8 (CRITICAL)

Changes

  • Replaced pickle with JSON + HMAC-SHA256 state serialization
  • Added constant-time signature verification
  • Implemented replay attack protection
  • Added 54 comprehensive security tests

Resolves: V-006 (CVSS 8.8)

## CRITICAL SECURITY FIX **Vulnerability:** V-006 - MCP OAuth Deserialization **CVSS Score:** 8.8 (CRITICAL) ### Changes - Replaced pickle with JSON + HMAC-SHA256 state serialization - Added constant-time signature verification - Implemented replay attack protection - Added 54 comprehensive security tests Resolves: V-006 (CVSS 8.8)
allegro added 2 commits 2026-03-31 00:39:02 +00:00
security: add atomic write utilities for TOCTOU protection (V-015)
Some checks failed
Docker Build and Publish / build-and-push (pull_request) Failing after 1m11s
Supply Chain Audit / Scan PR for supply chain risks (pull_request) Successful in 33s
Tests / test (pull_request) Failing after 31s
49097ba09e
Add atomic_write.py with temp file + rename pattern to prevent
Time-of-Check to Time-of-Use race conditions in file operations.

CVSS: 7.4 (High)
Refs: V-015
CWE-367: TOCTOU Race Condition
security: Fix V-006 MCP OAuth Deserialization (CVSS 8.8 CRITICAL)
Some checks failed
Nix / nix (ubuntu-latest) (pull_request) Failing after 15s
Supply Chain Audit / Scan PR for supply chain risks (pull_request) Failing after 19s
Docker Build and Publish / build-and-push (pull_request) Failing after 28s
Tests / test (pull_request) Failing after 9m43s
Nix / nix (macos-latest) (pull_request) Has been cancelled
cb0cf51adf
- Replace pickle with JSON + HMAC-SHA256 state serialization
- Add constant-time signature verification
- Implement replay attack protection with nonce expiration
- Add comprehensive security test suite (54 tests)
- Harden token storage with integrity verification

Resolves: V-006 (CVSS 8.8)
allegro merged commit 42bc7bf92e into main 2026-03-31 00:39:23 +00:00
allegro deleted branch security/fix-mcp-oauth-deserialization 2026-03-31 00:39:23 +00:00
Sign in to join this conversation.