{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.15.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "de15527c94af603cc6646b2ef9a36e2519401a37"
            }
          ],
          "repo": "https://github.com/duracelltomi/gtm4wp",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "The Google Tag Manager for WordPress plugin for WordPress is vulnerable to reflected Cross-Site Scripting via the s parameter due to the site search populating into the data layer of sites with insufficient sanitization in versions up to an including 1.15. The affected file is ~/public/frontend.php and this could be exploited by unauthenticated attackers.",
  "id": "CVE-2022-1707",
  "modified": "2026-03-15T13:46:46.894481941Z",
  "published": "2022-06-13T13:15:11.793Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/duracelltomi/gtm4wp/blob/1.15/public/frontend.php#L298"
    },
    {
      "type": "WEB",
      "url": "https://github.com/duracelltomi/gtm4wp/blob/1.15/public/frontend.php#L782"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/0435ae14-c1fd-4611-acbe-5f3bafd4bb6a?source=cve"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.wordfence.com/vulnerability-advisories/#CVE-2022-1707"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/duracelltomi/gtm4wp/issues/224"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}