Live threats

All CVEs / Wiremock

CVE-2023-41329Wiremock Python Wiremock

Medium 6.6

Priority
40
CVSS 3.1
6.6
EPSS
0.8%
probability of exploitation in 30 days · percentile 54
Auth required
Yes
Published
Sep 6, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-290
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

What happens

WireMock is a tool for mocking HTTP services. The proxy mode of WireMock, can be protected by the network restrictions configuration, as documented in Preventing proxying to and recording from specific target addresses. These restrictions can be configured using the domain names, and in such a case the configuration is vulnerable to the DNS rebinding attacks. A similar patch was applied in WireMock 3.0.0-beta-15 for the WireMock Webhook Extensions. The root cause of the attack is a defect in the logic which allows for a race condition triggered by a DNS server whose address expires in between the initial validation and the outbound network request that might go to a domain that was supposed to be prohibited. Control over a DNS service is required to exploit this attack, so it has high execution complexity and limited impact. This issue has been addressed in version 2.35.1 of wiremock-jre8 and wiremock-jre8-standalone, version 3.0.3 of wiremock and wiremock-standalone, version 2.6.1 of the python version of wiremock, and versions 2.35.1-1 and 3.0.3-1 of the wiremock/wiremock Docker container. Users are advised to upgrade. Users unable to upgrade should either configure firewall rules to define the list of permitted destinations or to configure WireMock to use IP addresses instead of the domain names.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python Wiremock.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven com.github.tomakehurst:wiremock-jre8 < 2.35.1 2.35.1 —
Maven com.github.tomakehurst:wiremock-jre8-standalone < 2.35.1 2.35.1 —
Maven org.wiremock:wiremock < 3.0.3 3.0.3 —
Maven org.wiremock:wiremock-standalone < 3.0.3 3.0.3 —
PyPI wiremock < 2.6.1 2.6.1 pip install "wiremock>=2.6.1"
PyPI wiremock < 2.6.1 2.6.1 pip install "wiremock>=2.6.1"

Per OSV / GitHub Advisories (GHSA-pmxq-pj47-j8j4, PYSEC-2026-2050). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
wiremockpython_wiremock< 2.6.1
wiremockstudio≤ 2.32.0-17
wiremockwiremock< 2.35.1
wiremockwiremock≥ 3.0.0 < 3.0.3
wiremockwiremock_docker≥ 2.0.0 < 2.35.1-1
wiremockwiremock_docker≥ 3.0.0 < 3.0.3-1

Official sources

References

Links published by the sources. Open them with care.