{"id":"CVE-2026-9733","published":"2026-06-23T07:05:20Z","modified":"2026-06-23T14:18:05Z","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","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00522,"percentile":0.45236,"provenance":"source"},"cwes":[{"id":"CWE-340","name":"Generation of Predictable Numbers or Identifiers"},{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"references":[{"url":"https://metacpan.org/release/HAYAJO/Mojolicious-Plugin-Web-Auth-0.17/source/lib/Mojolicious/Plugin/Web/Auth/OAuth2.pm#L129-131","tags":[]},{"url":"https://datatracker.ietf.org/doc/html/rfc6749#section-10.12","tags":["technical-description"]},{"url":"https://security.metacpan.org/patches/M/Mojolicious-Plugin-Web-Auth/0.17/CVE-2026-9733-r2.patch","tags":["patch"]},{"url":"http://www.openwall.com/lists/oss-security/2026/06/23/1","tags":[]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":9.05},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"hayajo","affectedVersions":[{"vendor":"HAYAJO","product":"Mojolicious::Plugin::Web::Auth::OAuth2","versions":["<= 0.17"]}],"workarounds":{"items":["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, plugin 'Web::Auth', module => 'OAuth2', ... state_generator => sub { unpack(\"H*\", Mojo::Util::random_bytes(20)) };"],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-59","name":"Session Credential Falsification through Prediction"},{"id":"CAPEC-62","name":"Cross Site Request Forgery"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-06-23T14:18:00.494484Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-38421","exploited":false,"provenance":"source"}}