IP2Location Country Blocker trusts forged X-Real-IP headers
IP2Location Country Blocker before 2.45.0 trusts the caller-supplied X-Real-IP header when applying IP restrictions. An unauthenticated attacker can supply an allowlisted address in that header to bypass page, link, or site-wide restrictions and reach otherwise-blocked resources.
- Component
- IP2Location Country Blocker
- Plugin slug
ip2location-country-blocker- Affected
- < 2.45.0
- Safe version
2.45.0- Published
- Sep 09, 2026
This CVE was published Sep 09, 2026 and is one of 6 known issues for this plugin.
Update, patch or deactivate.
Update IP2Location Country Blocker to 2.45.0 or later. The authoritative record identifies this release as outside the affected range.
A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical description
IP2Location Country Blocker plugin for WordPress before 2.45.0 contains an access control bypass vulnerability that allows unauthenticated remote attackers to circumvent IP-based restrictions by forging the X-Real-IP HTTP header. Attackers can set the X-Real-IP header to an allowlisted IP address to bypass page, link, or site-wide access restrictions and access otherwise-blocked resources.
CVE / CNA vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X