Intel

AIKIDO-2026-69146

mockttp is vulnerable to Binding to an Unrestricted IP Address

Binding to an Unrestricted IP AddressGHSA-7wvg-3v5v-p8hh Published 4 days ago

75

High Risk

This Affects:

JSmockttp
0.0.1 - 3.17.1
Fixed in 3.17.2
4.0.0 - 4.5.0
Fixed in 4.6.0
Are you affected? Scan for Free

TL;DR

The optional remote admin server binds to all network interfaces (0.0.0.0) by default when it is started without an explicit host, or with only a port. Any party with network access to the admin port can then configure and start mock servers with custom rules without authentication. This can be abused to read process-readable files from the host machine and retrieve them through a dynamically created mock server. The fix changes the default bind host to 127.0.0.1 so the admin API only accepts local connections unless explicitly configured otherwise.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you enable the remote admin server with default or port-only settings so it binds to all network interfaces and is reachable by untrusted parties.

Background info

mockttp is vulnerable to Binding to an Unrestricted IP Address in versions 0.0.1 - 3.17.1 and 4.0.0 - 4.5.0.

How to fix this

Upgrade the mockttp library to the patch version.