{
  "id": "CVE-2026-59148",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-59148",
  "published_at": "2026-07-09T18:27:18.579Z",
  "title": "Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft",
  "vendor": "mockoon",
  "product": "mockoon",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-11-16T20:17:00Z",
    "first_seen_at": null,
    "days_after_publication": 130.1,
    "source": "nuclei",
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-59148.yaml"
  },
  "poc_repo_count": 0,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Mockoon provides way to design and run mock APIs. Prior to 9.7.0, Mockoon's admin API in commons-server/src/libs/server/admin-api.ts is mounted on the same Express listener as user-defined mock routes, enabled by default in shipped runtimes, serves Access-Control-Allow-Origin: * with write methods allowed, and has no authentication. Any unauthenticated caller who can reach the mock server port can read MOCKOON_* environment variables, write arbitrary process environment variables through /mockoon-admin/env-vars, rewrite mock route bodies, statuses, and headers through PUT /mockoon-admin/environment, read transaction logs and SSE streams, and purge state. This issue is fixed in version 9.7.0.",
  "cwe": "CWE-306",
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "mockoon",
        "product": "mockoon",
        "ranges": [
          "\u003c 9.7.0"
        ],
        "fixed_in": [
          "9.7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade mockoon to 9.7.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mockoon/mockoon/pull/2254"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mockoon/mockoon/commit/c420b5a56918475b8663977b51e5f986e45b3299"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/mockoon/mockoon/releases/tag/v9.7.0"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-59148.yaml",
      "source": "nuclei",
      "title": "nuclei template: Mockoon \u003c 9.7.0 - Unauthenticated Admin API",
      "published_at": "2026-11-16T20:17:00Z",
      "first_seen_at": "2026-11-18T11:13:56.742Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
