# CVE-2023-41329: Domain restrictions bypass via DNS Rebinding in WireMock and WireMock Studio

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.9
- **CVSS:** 3.9 (v3.1, CNA) `CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.81% (percentile 54, 2026-11-26)
- **CWE:** CWE-290
- **Aliases:** BIT-wiremock-2023-41329, GHSA-pmxq-pj47-j8j4, PYSEC-2026-2050
- **Published:** 2023-09-06T20:34:46.867Z
- **Modified:** 2026-09-10T03:49:58.610Z

## Who should check

- Projects that depend on PyPI package wiremock (\< 2.6.1)
- Projects that depend on Maven package org.wiremock:wiremock-standalone (\< 3.0.3)
- Projects that depend on Maven package org.wiremock:wiremock (\< 3.0.3)
- Projects that depend on Maven package com.github.tomakehurst:wiremock-jre8 (\< 2.35.1)
- Projects that depend on Maven package com.github.tomakehurst:wiremock-jre8-standalone (\< 2.35.1)
- Anyone running wiremock  org.wiremock:wiremock: \< 3.0.3;  org.wiremock:wiremock-standalone: \< 3.0.3; com.tomakehurst.wiremock:wiremock-jre8: \< 2.35.1; com.tomakehurst.wiremock:wiremock-jre8-standalone: \< 2.35.1; pypi: wiremock: \< 2.6.1; wiremock/wiremock: \< 2.35.1-1; wiremock/wiremock: \>= 3.0.0, \< 3.0.3-1

## Description

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.

## Affected and fixed versions

- PyPI `wiremock`: affected \< 2.6.1; fixed 2.6.1 (osv)
- Maven `org.wiremock:wiremock-standalone`: affected \< 3.0.3; fixed 3.0.3 (osv)
- Maven `org.wiremock:wiremock`: affected \< 3.0.3; fixed 3.0.3 (osv)
- Maven `com.github.tomakehurst:wiremock-jre8`: affected \< 2.35.1; fixed 2.35.1 (osv)
- Maven `com.github.tomakehurst:wiremock-jre8-standalone`: affected \< 2.35.1; fixed 2.35.1 (osv)
- wiremock:  org.wiremock:wiremock: \< 3.0.3;  org.wiremock:wiremock-standalone: \< 3.0.3; com.tomakehurst.wiremock:wiremock-jre8: \< 2.35.1; com.tomakehurst.wiremock:wiremock-jre8-standalone: \< 2.35.1; pypi: wiremock: \< 2.6.1; wiremock/wiremock: \< 2.35.1-1; wiremock/wiremock: \>= 3.0.0, \< 3.0.3-1 (cvelist)

## Mitigation

- Upgrade wiremock to 2.6.1 or later.
- Upgrade org.wiremock:wiremock-standalone to 3.0.3 or later.
- Upgrade org.wiremock:wiremock to 3.0.3 or later.
- Upgrade com.github.tomakehurst:wiremock-jre8 to 2.35.1 or later.
- Upgrade com.github.tomakehurst:wiremock-jre8-standalone to 2.35.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-41329. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-41329.md
Affected: wiremock < 2.6.1; org.wiremock:wiremock-standalone < 3.0.3; org.wiremock:wiremock < 3.0.3; com.github.tomakehurst:wiremock-jre8 < 2.35.1; com.github.tomakehurst:wiremock-jre8-standalone < 2.35.1
Fixed in: 2.6.1, 3.0.3, 2.35.1

Steps:
1. Search this machine and project for wiremock (PyPI), org.wiremock:wiremock-standalone (Maven), org.wiremock:wiremock (Maven), com.github.tomakehurst:wiremock-jre8 (Maven), com.github.tomakehurst:wiremock-jre8-standalone (Maven), wiremock: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-41329 being exploited?

There is no confirmed exploitation: CVE-2023-41329 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.81% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-41329?

Low: CVSS 3.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-41329?

wiremock \< 2.6.1; org.wiremock:wiremock-standalone \< 3.0.3; org.wiremock:wiremock \< 3.0.3; com.github.tomakehurst:wiremock-jre8 \< 2.35.1; com.github.tomakehurst:wiremock-jre8-standalone \< 2.35.1.

### Is there a fix for CVE-2023-41329?

Yes. Fixed in 2.6.1, 3.0.3, 2.35.1. Upgrade wiremock to 2.6.1 or later. Upgrade org.wiremock:wiremock-standalone to 3.0.3 or later. Upgrade org.wiremock:wiremock to 3.0.3 or later. Upgrade com.github.tomakehurst:wiremock-jre8 to 2.35.1 or later. Upgrade com.github.tomakehurst:wiremock-jre8-standalone to 2.35.1 or later.

### How do I check if I'm affected by CVE-2023-41329?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/wiremock/wiremock/security/advisories/GHSA-pmxq-pj47-j8j4>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-41329>
- vendor: <https://github.com/advisories/GHSA-pmxq-pj47-j8j4>
- other: <https://wiremock.org/docs/configuration/#preventing-proxying-to-and-recording-from-specific-target-addresses>
- other: <https://github.com/wiremock/wiremock>
- other: <https://pypi.org/project/wiremock>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-41329>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-2050> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-pmxq-pj47-j8j4> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-41329> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-41329>
