{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "e9942c6d19ac1709b3df7357cfb8810774c8d3ac"
            }
          ],
          "repo": "https://github.com/mybb/mybb",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-wf92-5q5h-qr53"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-83"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45118.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "fixed": "1.8.40"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "MyBB is free and open source forum software. Prior to 1.8.40, the Contact module does not validate a redirect URL or protocol correctly, resulting in an open redirect and reflected JavaScript code injection. contact.php accepts the redirect target from the from HTTP parameter in $mybb-\u003einput['from'] or the Referer HTTP header in $_SERVER['HTTP_REFERER'] and passes it to redirect() without sufficient verification. A javascript: URI becomes the target of the `Click here if you don't want to wait any longer` link because $force_redirect is true, allowing script execution when a victim selects the link. This issue is fixed in version 1.8.40.",
  "id": "CVE-2026-45118",
  "modified": "2026-09-10T03:30:48.992755262Z",
  "published": "2026-08-18T15:55:27.280Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/mybb/mybb/releases/tag/mybb_1840"
    },
    {
      "type": "WEB",
      "url": "https://mybb.com/versions/1.8.40"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45118.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/mybb/mybb/security/advisories/GHSA-wf92-5q5h-qr53"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45118"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "MyBB: Contact page reflected XSS"
}