CVE-2023-41329
Domain restrictions bypass via DNS Rebinding in WireMock and WireMock Studio
Also known as BIT-wiremock-2023-41329, GHSA-pmxq-pj47-j8j4, PYSEC-2026-2050
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.
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
Vulnerability facts
- 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
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 3.9 (v3.1, CNA)CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.81% chance of exploitation in 30 days (percentile 54, 2026-11-26)
- CWE
- CWE-290
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI wiremock | < 2.6.1 | 2.6.1 | osv |
| Maven org.wiremock:wiremock-standalone | < 3.0.3 | 3.0.3 | osv |
| Maven org.wiremock:wiremock | < 3.0.3 | 3.0.3 | osv |
| Maven com.github.tomakehurst:wiremock-jre8 | < 2.35.1 | 2.35.1 | osv |
| Maven com.github.tomakehurst:wiremock-jre8-standalone | < 2.35.1 | 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 |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
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.