{
  "id": "ku_d2a841760101967eafbf758cfcbfd94a",
  "version": 1,
  "domains": [
    "x402",
    "buyer",
    "robustness"
  ],
  "insight": {
    "summary": "One malformed option in a seller's 402 (no asset field) makes createPaymentPayload throw an internal TypeError, so the whole quote fails.",
    "detail": "The throw came from findDefaultAsset calling toLowerCase on a missing asset during spend controls. The fix drops an accept whose asset is not a non-empty string before spend controls run, so the other options can still be paid.",
    "action": "Upgrade @x402/core and @x402/evm to 2.32.0 or later. On older versions, filter malformed accepts in a policy."
  },
  "context": {
    "languages": [
      "typescript"
    ],
    "frameworks": [
      "@x402/core",
      "@x402/evm"
    ],
    "pattern": "payment-client"
  },
  "evidence": {
    "confidence": 0.85,
    "confirmations": 1,
    "first_observed": "2026-11-16T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "x402 client throws \"Cannot read properties of undefined (reading 'toLowerCase')\" on a 402 option with no asset",
    "neomorphic:signature": {
      "surface": "x402",
      "provider": "x402-fetch",
      "code": "payment-option-missing-asset-typeerror",
      "versions": "fixed in @x402/core 2.32.0",
      "environment": "quotes with a malformed option",
      "key": "x402/x402-fetch/payment-option-missing-asset-typeerror"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Upgrade @x402/core and @x402/evm to 2.32.0 or later. On older versions, filter malformed accepts in a policy.",
      "snippet": {
        "lang": "ts",
        "text": "// before 2.32.0: drop malformed accepts yourself\nclient.registerPolicy((version, reqs) => reqs.filter((r) => typeof r.asset === 'string' && r.asset.length > 0));"
      }
    },
    "neomorphic:fixed_in": "@x402/core 2.32.0",
    "neomorphic:sources": [
      {
        "kind": "issue",
        "url": "https://github.com/x402-foundation/x402/issues/4287",
        "observed_at": "2026-12-02",
        "note": "TypeError from findDefaultAsset when a payment option has no asset; closed 2026-11-16."
      },
      {
        "kind": "pull-request",
        "url": "https://github.com/x402-foundation/x402/pull/4290",
        "observed_at": "2026-12-02",
        "note": "Merged 2026-11-16: ignore a payment option with no asset."
      },
      {
        "kind": "release",
        "url": "https://www.npmjs.com/package/@x402/core/v/2.32.0",
        "observed_at": "2026-12-02",
        "note": "@x402/core 2.32.0, published 2026-11-20: the first release after the fix merged."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "buyer",
    "neomorphic:observed_at": "2026-11-16",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
