{
  "id": "CVE-2026-9733",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-9733",
  "published_at": "2026-06-23T07:05:20.564Z",
  "title": "Mojolicious::Plugin::Web::Auth::OAuth2 versions through 0.17 for Perl have an insecure default state parameter",
  "vendor": "HAYAJO",
  "product": "Mojolicious::Plugin::Web::Auth::OAuth2",
  "cvss": {
    "score": 9.1,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Mojolicious::Plugin::Web::Auth::OAuth2 versions through 0.17 for Perl have an insecure default state parameter.\n\nWhen no state generator is specified in the constructor, the module defaults to using a SHA-1 hash of predictable and low-entropy sources, including the epoch time (which is leaked via the HTTP Date header) and a call to Perl's built-in rand function.\n\nA predictable state allows an attacker to hijack another user's session through cross site request forgery (CSRF).",
  "cwe": "CWE-340",
  "cvss_by_source": {
    "cisa-adp": 9.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "HAYAJO",
        "product": "Mojolicious::Plugin::Web::Auth::OAuth2",
        "ranges": [
          "\u003c= 0.17"
        ],
        "fixed_in": null
      }
    ],
    "workarounds": [
      "Users should specify a state_generator function in the plugin configuration that uses a secure CSPRNG such as Crypt::PRNG or (for Mojolicious 9.46 or later) the Mojo::Util::random_bytes function.  For example,\n\n  plugin 'Web::Auth',\n    module =\u003e 'OAuth2',\n    ...\n    state_generator =\u003e sub {\n      unpack(\"H*\", Mojo::Util::random_bytes(20))\n    };"
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://security.metacpan.org/patches/M/Mojolicious-Plugin-Web-Auth/0.17/CVE-2026-9733-r2.patch"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
