{"id":81758,"date":"2026-07-09T22:47:07","date_gmt":"2026-07-09T19:17:07","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-59148-mockoon-unauthenticated-admin-api-wildcard-cors-allows-mock-state-hijack-and-secret-theft\/"},"modified":"2026-07-09T22:47:07","modified_gmt":"2026-07-09T19:17:07","slug":"cve-2026-59148-mockoon-unauthenticated-admin-api-wildcard-cors-allows-mock-state-hijack-and-secret-theft","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-59148-mockoon-unauthenticated-admin-api-wildcard-cors-allows-mock-state-hijack-and-secret-theft\/","title":{"rendered":"CVE-2026-59148 &#8211; Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft"},"content":{"rendered":"<p>CVE ID :CVE-2026-59148<\/p>\n<p>  Published : July 9, 2026, 7:17 p.m. | 31\u00a0minutes ago<\/p>\n<p>  Description :Mockoon provides way to design and run mock APIs. Prior to 9.7.0, Mockoon&#8217;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.<\/p>\n<p>  Severity: 8.8 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-59148 Published : July 9, 2026, 7:17 p.m. | 31\u00a0minutes ago Description :Mockoon provides way to design and run mock APIs. Prior to 9.7.0, Mockoon&#8217;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, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-81758","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=81758"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81758\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=81758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=81758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=81758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}