{
 "id": "WPSEC-2026-0475",
 "url": "https://wpsec.com/vuln/WPSEC-2026-0475/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-0475/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-0475/index.md",
 "title": "Zero Spam for WordPress <= 5.7.11 - Unauthenticated Country Block Bypass via 'CF-IPCountry' and 'X-Forwarded-Country' Headers",
 "description": "The Zero Spam for WordPress plugin for WordPress is vulnerable to a country block bypass in versions 5.1.2 up to, and including, 5.7.11. This is due to the plugin taking a visitor's country from the client-supplied 'CF-IPCountry' or 'X-Forwarded-Country' request header whenever no geolocation service returned one, without checking that the request actually came through Cloudflare or a trusted proxy, and, since version 5.7.0, caching that country for the visitor's IP address for a week. This makes it possible for unauthenticated attackers to supply a forged country and evade the site's country blocks on sites whose country detection relies on these headers.",
 "plugin": {
  "slug": "zero-spam",
  "name": "Zero Spam for WordPress",
  "full_name": "Zero Spam for WordPress",
  "wordpress_org": "https://wordpress.org/plugins/zero-spam/",
  "advisories_url": "https://wpsec.com/vuln/plugin/zero-spam/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/zero-spam"
 },
 "type": "BYPASS",
 "cwe": [
  "CWE-348"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 3.7,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N",
  "severity": "Low"
 },
 "affected": {
  "ranges": [
   {
    "from": "5.1.2",
    "from_inclusive": true,
    "to": "5.7.12",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 5.1.2 before 5.7.12"
  ]
 },
 "introduced_in": "5.1.2",
 "fixed_in": "5.7.12",
 "remediation": "Update to 5.7.12 or later.",
 "fix_released": "2026-10-04T19:48:20+00:00",
 "published": "2026-10-06T19:43:53+00:00",
 "updated": "2026-10-06T19:05:42.020997+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-0475/",
  "https://plugins.svn.wordpress.org/zero-spam/tags/5.7.12/",
  "https://wordpress.org/plugins/zero-spam/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/zero-spam",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-10-06"
 }
}