CVE-2026-59148: Mockoon < 9.7.0 - Unauthenticated Admin API

2026-11-29 PoC Public

Description

Mockoon CLI and commons-server before 9.7.0 enable the admin API by default on the same listener as the mock routes. The /mockoon-admin endpoints do not require any token and answer every origin with Access-Control-Allow-Origin set to a wildcard.

Details

CVE
CVE-2026-59148 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-59148

info:
  name: Mockoon < 9.7.0 - Unauthenticated Admin API
  author: s4e-io
  severity: high
  description: |
    Mockoon CLI and commons-server before 9.7.0 enable the admin API by default on the same listener as the mock routes. The /mockoon-admin endpoints do not require any token and answer every origin with Access-Control-Allow-Origin set to a wildcard.
  impact: |
    Unauthenticated attackers can read transaction logs and environment variables, change global variables and data buckets, and rewrite mock responses served to other clients.
  remediation: |
    Upgrade to version 9.7.0 or later, which requires a bearer token for the admin API, or start the server with --disable-admin-api.
  reference:
    - https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v
    - https://github.com/mockoon/mockoon/commit/c420b5a56918475b8663977b51e5f986e45b3299
    - https://mockoon.com/releases/9.7.0
    - https://nvd.nist.gov/vuln/detail/CVE-2026-59148
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2026-59148
    epss-score: 0.00944
    epss-percentile: 0.59607
    cwe-id: CWE-306
  metadata:
    verified: true
    max-request: 1
    vendor: mockoon
    product: mockoon
  tags: cve,cve2026,mockoon,unauth,exposure

http:
  - raw:
      - |
        GET /mockoon-admin HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "json")'
          - 'contains(body, "Welcome to Mockoon''s admin API")'
        condition: and
# digest: 4b0a00483046022100974591e06087fbcff25b3fb92f90a3d394009d56138df1459f6b01884d253cc2022100a0927f514b84db590ee5dc9955237dcc98b1eb806743d319ed3973652d9ecde7:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life