
A request body buffering vulnerability affecting Mockoon runtimes has been disclosed and patched in v9.8.0. We advise all users to update to version >= 9.8.0
We are issuing a security advisory to inform our community about a vulnerability disclosed through GitHub Security Advisories and patched in Mockoon release 9.8.0:
This issue has been fixed in 9.8.0. We strongly recommend that all users update as soon as possible.
The vulnerability affects request body parsing in Mockoon runtimes. In affected versions, incoming request payloads could be buffered in memory without a strict global request body size limit.
An unauthenticated attacker with network access to a mock server could send very large payloads, including to non-existing routes, and force excessive memory allocation. In constrained environments, this could result in process termination due to out-of-memory (OOM) conditions. In unconstrained environments, it could still cause severe memory pressure and service disruption.
The advisory GHSA-845j-g722-g66h, fixed in PR #2290, affects body parsing behavior in Mockoon server components.
Before 9.8.0, request body buffering could happen before route matching without a dedicated global guard for total request body size in all cases. This opened a path for uncontrolled memory consumption when handling oversized payloads.
This vulnerability impacts availability only (denial of service). There is no known direct confidentiality or integrity impact associated with this issue.
This issue primarily affects deployments where a Mockoon runtime is reachable from untrusted clients.
A deployment may be vulnerable if a mock server is publicly exposed, shared across teams, reachable from CI/staging networks, or deployed in containers/services with finite memory resources.
In practical terms, an attacker could:
The risk is higher in memory-constrained environments where OOM kills occur earlier.
The exploitability of this vulnerability depends on your setup:
Even in lower-risk scenarios, we recommend updating all runtimes to ensure consistent request payload protection.
According to the advisory, affected versions include Mockoon server components up to and including 9.7.0.
Applications and packages potentially affected include:
@mockoon/cli).@mockoon/serverless).@mockoon/commons-server).The vulnerability is fixed in version 9.8.0 and later.
This release introduces a dedicated maxRequestBodySize setting and enforces request body limits consistently across the server stack.
You can configure this limit in the CLI using the --max-request-body-size flag, with either raw bytes or human-readable values such as 10MB.
The default maximum request body size is 100MB, and requests exceeding the configured limit receive a 413 Payload Too Large response.
We urge all users to update to version 9.8.0 or newer immediately, especially for exposed or shared deployments. You can download the latest desktop version or update packages from NPM:
npm install @mockoon/cli@latest @mockoon/serverless@latest
We are moving to a monthly-to-bi-monthly release cycle for faster security response, and focusing the rest of 2026 on delivering a full self-hosted Mockoon offer.
Read moreTwo security vulnerabilities affecting Mockoon runtimes have been disclosed and patched in v9.7.0. We advise all users to update to version >= 9.7.0
Read moreWe are proud to partner with GitHub once more for Maintainer Month, offering free Mockoon Cloud accounts to open-source project maintainers.
Read more