{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:cacti:cacti:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.2.31"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1e8eaca26b84b128c39ce8cc8ece42d7ff76aac1"
            }
          ],
          "repo": "https://github.com/cacti/cacti",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-6gr7-53g8-vchq"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-601"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40080.json"
  },
  "details": "Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior are vulnerable to Open Redirect through a substring check rather than a host check at str_contains($referer, CACTI_PATH_URL). When the user's login_opts == '1' (redirect to referer after login), the function used $_SERVER['HTTP_REFERER'] directly.  An attacker could craft a referer such as https://evil.com/cacti/. Where CACTI_PATH_URL is /cacti/, the substring matches and the user is redirected to evil.com after login. The pre-existing validate_redirect_url() helper at lib/html_utility.php performed proper validation but was not invoked from auth_login_redirect(). This issue has been fixed in version 1.2.31.",
  "id": "CVE-2026-40080",
  "modified": "2026-07-08T05:35:53.558651676Z",
  "published": "2026-06-25T22:29:51.784Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/Cacti/cacti/releases/tag/release%2F1.2.31"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40080.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Cacti/cacti/security/advisories/GHSA-6gr7-53g8-vchq"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40080"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Cacti: Open Redirect via HTTP_REFERER substring check in auth_login_redirect"
}