{
  "id": "ku_2798b589c19c6e6aeb5bb2bdc22c0085",
  "version": 1,
  "domains": [
    "x402",
    "facilitator",
    "evm",
    "validation"
  ],
  "insight": {
    "summary": "A buyer sends a payment with an empty or partial authorization and your server answers 500, so the buyer cannot tell a bad payment from an outage.",
    "detail": "Exact EVM verify called BigInt(authorization.value) and similar on client input; a missing field threw a TypeError that x402Facilitator.verify rethrew. From 2.29.0 verify and settle return isValid false with invalid_payload when the EIP-3009 or Permit2 authorization is missing or the wrong shape.",
    "action": "Upgrade @x402/evm to 2.29.0 or later. On older versions, catch around verify and answer with an invalid result, never a 500."
  },
  "context": {
    "languages": [
      "typescript"
    ],
    "frameworks": [
      "@x402/evm",
      "@x402/core"
    ],
    "pattern": "error-mapping"
  },
  "evidence": {
    "confidence": 0.85,
    "confirmations": 1,
    "first_observed": "2026-10-28T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "x402 verify answers 500 for a malformed payment instead of 400 invalid_payload",
    "neomorphic:signature": {
      "surface": "facilitator",
      "provider": "x402-evm",
      "code": "malformed-exact-payload-throws",
      "http": 500,
      "versions": "fixed in @x402/evm 2.29.0",
      "environment": "exact EVM verify and settle",
      "key": "facilitator/x402-evm/malformed-exact-payload-throws"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Upgrade @x402/evm to 2.29.0 or later. On older versions, catch around verify and answer with an invalid result, never a 500.",
      "snippet": {
        "lang": "ts",
        "text": "let result;\ntry {\n  result = await facilitator.verify(payload, requirements);\n} catch (e) {\n  result = { isValid: false, invalidReason: 'invalid_payload' };   // client input, not a server fault\n}"
      }
    },
    "neomorphic:fixed_in": "@x402/evm 2.29.0",
    "neomorphic:sources": [
      {
        "kind": "issue",
        "url": "https://github.com/x402-foundation/x402/issues/3956",
        "observed_at": "2026-12-02",
        "note": "verify throws on malformed EVM payloads instead of returning an invalid result; closed 2026-10-28."
      },
      {
        "kind": "pull-request",
        "url": "https://github.com/x402-foundation/x402/pull/3975",
        "observed_at": "2026-12-02",
        "note": "Merged 2026-10-28: return invalid_payload for malformed exact payloads."
      },
      {
        "kind": "release",
        "url": "https://www.npmjs.com/package/@x402/evm/v/2.29.0",
        "observed_at": "2026-12-02",
        "note": "@x402/evm 2.29.0, published 2026-10-28: the first release whose tag contains the fix."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "seller",
    "neomorphic:observed_at": "2026-10-28",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
