Skip to content
Heist/ feed
Back to feed
High

Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-59148
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 14:13 UTC · Revision 1

Source evidence

Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft

core-osv · Original source

Published 9 Jul 2026, 18:27 UTC

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.

osv:CVE-2026-59148
Complete source record
{
  "id": "d48bd303c66ab86407e9c2b48d620f29cdce5ac196c682a62eb033a23cd49a59",
  "url": "https://osv.dev/vulnerability/CVE-2026-59148",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft",
    "summary": "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.",
    "evidence": "osv:CVE-2026-59148",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-59148",
      "aliases": [
        "CVE-2026-59148",
        "GHSA-rqx4-3f6q-3x2v"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mockoon/mockoon",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "51eaa94c8d83b9af99b64da10f2b5c383acd8a4c"
                },
                {
                  "fixed": "c420b5a56918475b8663977b51e5f986e45b3299"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "9.7.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c420b5a56918475b8663977b51e5f986e45b3299"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "51eaa94c8d83b9af99b64da10f2b5c383acd8a4c"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v9.7.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v9.6.1",
            "libs-v9.6.1",
            "v9.6.0",
            "libs-v9.6.0",
            "v9.5.0",
            "libs-v9.5.0",
            "v9.4.0",
            "libs-v9.4.0",
            "cloud-v9.3.2",
            "cloud-v9.3.1",
            "v9.3.0",
            "libs-v9.3.0",
            "v9.2.0",
            "libs-v9.2.0",
            "v9.1.0",
            "libs-v9.1.0",
            "v9.0.0",
            "libs-v9.0.0",
            "v8.4.0",
            "libs-v8.4.0",
            "v8.3.0",
            "libs-v8.3.0",
            "v8.2.0",
            "libs-v8.2.0",
            "v8.1.1",
            "libs-v8.1.1",
            "v8.1.0",
            "libs-v8.1.0",
            "v8.0.0",
            "libs-v8.0.0",
            "v7.0.0",
            "libs-v7.0.0",
            "v6.2.0",
            "libs-v6.2.0",
            "v6.1.0",
            "libs-v6.1.0",
            "v6.0.1",
            "libs-v6.0.1",
            "v6.0.0",
            "libs-v6.0.0",
            "v5.1.0",
            "libs-v5.1.0",
            "v5.0.0",
            "libs-v5.0.0",
            "v4.1.0",
            "libs-v4.1.0",
            "v4.0.0",
            "libs-v4.0.0",
            "v3.1.0",
            "libs-v3.1.0",
            "v3.0.0",
            "libs-v3.0.0",
            "v1.23.0",
            "libs-v2023-03",
            "libs-v2023-01",
            "v1.22.0",
            "v1.21.1",
            "cli-v2.2.1",
            "v1.21.0",
            "cli-v2.2.0",
            "v1.20.0",
            "cli-v2.1.0",
            "v1.19.0",
            "cli-v2.0.0",
            "cli-v1.6.2",
            "cli-v1.6.1",
            "v1.18.1",
            "v1.18.0",
            "v1.17.0",
            "v1.16.0",
            "v1.15.0",
            "v1.14.1",
            "v1.14.0",
            "v1.13.0",
            "v1.12.0",
            "v1.11.0",
            "v1.10.0",
            "v1.9.0",
            "v1.8.0",
            "v1.7.0",
            "v1.6.0",
            "v1.5.1",
            "v1.5.0",
            "v1.4.0",
            "v1.3.0",
            "v1.2.0",
            "v1.1.0",
            "v1.0.0",
            "v0.4.0",
            "v0.3.0",
            "v0.2.0",
            "v0.1.1",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59148.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.226057892Z",
      "provider": "osv",
      "references": [
        "https://github.com/mockoon/mockoon/releases/tag/v9.7.0",
        "https://mockoon.com/releases/9.7.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59148.json",
        "https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-59148",
        "https://github.com/mockoon/mockoon/commit/c420b5a56918475b8663977b51e5f986e45b3299",
        "https://github.com/mockoon/mockoon/pull/2254"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-306",
          "CWE-352",
          "CWE-732",
          "CWE-942"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59148.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-59148",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496245,
  "published_at": "2026-07-09T18:27:18.579+00:00"
}