<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Mockoon - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/vendors/mockoon/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sat, 12 Sep 2026 00:57:28 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/vendors/mockoon/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Unauthenticated Admin API Exposure in Mockoon</title><link>https://feed.craftedsignal.io/briefs/2026-09-mockoon-admin-hijack/</link><pubDate>Sat, 12 Sep 2026 00:57:28 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-mockoon-admin-hijack/</guid><description>Mockoon versions before 9.7.0 expose an unauthenticated, CORS-misconfigured admin API by default, allowing attackers to exfiltrate environment variables, hijack mock responses, and perform cross-origin secret theft.</description><content:encoded><![CDATA[<p>Mockoon, a popular mock server tool, contains a critical security vulnerability in its admin API, which is enabled by default across all runtimes, including <code>@mockoon/commons-server</code>, the CLI, and serverless deployments. The admin API, located at <code>/mockoon-admin/</code>, lacks any form of authentication or authorization, allowing any unauthenticated user with network access to the server (defaulting to 0.0.0.0:3000) to manipulate the service. Furthermore, the API endpoints explicitly set <code>Access-Control-Allow-Origin: *</code>, which permits browser-based attackers to interact with the admin API cross-origin via CSRF. This flaw allows an attacker to steal sensitive <code>MOCKOON_*</code> environment variables, inject arbitrary process-level environment variables (e.g., <code>AWS_SECRET_ACCESS_KEY</code>), rewrite mock API responses, and harvest sensitive data from transaction logs or Server-Sent Events (SSE). The vulnerability, tracked as CVE-2026-59148, affects all versions prior to 9.7.0.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker performs network reconnaissance to identify Mockoon instances running on default port 3000 or via local browser-based discovery.</li>
<li>Attacker interacts with <code>/mockoon-admin/env-vars/</code> endpoints via standard HTTP methods (GET/POST) without authentication to identify and exfiltrate secrets stored as <code>MOCKOON_*</code> variables.</li>
<li>Attacker uses <code>POST /mockoon-admin/env-vars/</code> to inject or overwrite arbitrary process-level environment variables, potentially influencing the host runtime or subsequent SDK operations.</li>
<li>Attacker utilizes <code>PUT /mockoon-admin/environment</code> to rewrite mock configurations, modifying body contents, status codes, and HTTP headers of downstream mock routes.</li>
<li>Attacker leverages wildcard CORS headers to execute cross-origin requests from a malicious webpage, bypassing browser same-origin policies if the developer interacts with the site.</li>
<li>Attacker observes live traffic and sensitive client auth headers (e.g., Authorization tokens, Cookies) by querying <code>/mockoon-admin/logs</code> or subscribing to the SSE stream at <code>/mockoon-admin/events</code>.</li>
<li>Final objective is achieved, ranging from credential theft and data exfiltration to complete supply-chain compromise via manipulated mock responses served to integration partners.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for the theft of local development secrets, poisoning of production-like staging environments, and the modification of mock responses to inject malicious payloads into downstream testing or CI/CD pipelines. Exposure in CI/CD environments provides a pathway to steal cloud infrastructure credentials or perform man-in-the-middle attacks on internal development tools.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritized actions for security teams:</p>
<ul>
<li>Update all instances of <code>@mockoon/cli</code> and <code>@mockoon/commons-server</code> to version 9.7.0 or later immediately to patch CVE-2026-59148.</li>
<li>Audit CI/CD pipelines for exposed Mockoon services; ensure that if the admin API is not strictly required, it is disabled using the <code>--disable-admin-api</code> flag.</li>
<li>Implement network-level restrictions using firewall rules to limit access to the Mockoon admin port (default 3000) to only trusted management subnets.</li>
<li>Scan for and rotate any environment variables that were hosted in Mockoon environments potentially accessible to unauthorized network traffic, particularly cloud provider keys and JWT secrets.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>webserver</category><category>vulnerability</category><category>cve</category></item></channel></rss>