Refine your search

1 vulnerability found for Injection Guard by fahadmahmood

CVE-2026-3368 (GCVE-0-2026-3368)
Vulnerability from cvelistv5
Published
2026-03-20 23:25
Modified
2026-04-08 16:37
CWE
  • CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Summary
The Injection Guard plugin for WordPress is vulnerable to Stored Cross-Site Scripting via malicious query parameter names in all versions up to and including 1.2.9. This is due to insufficient input sanitization in the sanitize_ig_data() function which only sanitizes array values but not array keys, combined with missing output escaping in the ig_settings.php template where stored parameter keys are echoed directly into HTML. When a request is made to the site, the plugin captures the query string via $_SERVER['QUERY_STRING'], applies esc_url_raw() (which preserves URL-encoded special characters like %22, %3E, %3C), then passes it to parse_str() which URL-decodes the string, resulting in decoded HTML/JavaScript in the array keys. These keys are stored via update_option('ig_requests_log') and later rendered without esc_html() or esc_attr() on the admin log page. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in the admin log page that execute whenever an administrator views the Injection Guard log interface.
References
https://www.wordfence.com/threat-intel/vulnerabilities/id/15d9817c-910d-4ce1-a5fb-67a2b6580e16?source=cve
https://plugins.trac.wordpress.org/browser/injection-guard/trunk/guard.php#L94
https://plugins.trac.wordpress.org/browser/injection-guard/trunk/ig_settings.php#L120
https://plugins.trac.wordpress.org/browser/injection-guard/trunk/ig_settings.php#L121
https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/ig_settings.php#L121
https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/ig_settings.php#L120
https://plugins.trac.wordpress.org/browser/injection-guard/trunk/ig_settings.php#L124
https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/ig_settings.php#L124
https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/guard.php#L94
https://plugins.trac.wordpress.org/browser/injection-guard/trunk/guard.php#L105
https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/guard.php#L105
https://plugins.trac.wordpress.org/browser/injection-guard/trunk/guard.php#L8
https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/guard.php#L8
https://plugins.trac.wordpress.org/browser/injection-guard/trunk/guard.php#L153
https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/guard.php#L153
https://plugins.trac.wordpress.org/browser/injection-guard/trunk/guard.php#L49
https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/guard.php#L49
https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3482741%40injection-guard&new=3482741%40injection-guard&sfp_email=&sfph_mail=
Impacted products
Vendor Product Version
fahadmahmood Injection Guard Version: 0    1.2.9
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-3368",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "yes"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-03-24T15:28:30.566055Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-03-24T15:29:00.488Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Injection Guard",
          "vendor": "fahadmahmood",
          "versions": [
            {
              "lessThanOrEqual": "1.2.9",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "Itthidej Aramsri"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "The Injection Guard plugin for WordPress is vulnerable to Stored Cross-Site Scripting via malicious query parameter names in all versions up to and including 1.2.9. This is due to insufficient input sanitization in the sanitize_ig_data() function which only sanitizes array values but not array keys, combined with missing output escaping in the ig_settings.php template where stored parameter keys are echoed directly into HTML. When a request is made to the site, the plugin captures the query string via $_SERVER[\u0027QUERY_STRING\u0027], applies esc_url_raw() (which preserves URL-encoded special characters like %22, %3E, %3C), then passes it to parse_str() which URL-decodes the string, resulting in decoded HTML/JavaScript in the array keys. These keys are stored via update_option(\u0027ig_requests_log\u0027) and later rendered without esc_html() or esc_attr() on the admin log page. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in the admin log page that execute whenever an administrator views the Injection Guard log interface."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.2,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-79",
              "description": "CWE-79 Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-04-08T16:37:02.719Z",
        "orgId": "b15e7b5b-3da4-40ae-a43c-f7aa60e62599",
        "shortName": "Wordfence"
      },
      "references": [
        {
          "url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/15d9817c-910d-4ce1-a5fb-67a2b6580e16?source=cve"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/trunk/guard.php#L94"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/trunk/ig_settings.php#L120"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/trunk/ig_settings.php#L121"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/ig_settings.php#L121"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/ig_settings.php#L120"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/trunk/ig_settings.php#L124"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/ig_settings.php#L124"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/guard.php#L94"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/trunk/guard.php#L105"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/guard.php#L105"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/trunk/guard.php#L8"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/guard.php#L8"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/trunk/guard.php#L153"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/guard.php#L153"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/trunk/guard.php#L49"
        },
        {
          "url": "https://plugins.trac.wordpress.org/browser/injection-guard/tags/1.2.8/guard.php#L49"
        },
        {
          "url": "https://plugins.trac.wordpress.org/changeset?sfp_email=\u0026sfph_mail=\u0026reponame=\u0026old=3482741%40injection-guard\u0026new=3482741%40injection-guard\u0026sfp_email=\u0026sfph_mail="
        }
      ],
      "timeline": [
        {
          "lang": "en",
          "time": "2026-03-20T10:55:45.000Z",
          "value": "Disclosed"
        }
      ],
      "title": "Injection Guard \u003c= 1.2.9 - Unauthenticated Stored Cross-Site Scripting via Query Parameter Name"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "b15e7b5b-3da4-40ae-a43c-f7aa60e62599",
    "assignerShortName": "Wordfence",
    "cveId": "CVE-2026-3368",
    "datePublished": "2026-03-20T23:25:10.600Z",
    "dateReserved": "2026-02-27T21:15:02.411Z",
    "dateUpdated": "2026-04-08T16:37:02.719Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}