CVE Explorer
CVE-2026-9733
Mojolicious::Plugin::Web::Auth::OAuth2 versions through 0.17 for Perl have an insecure default state parameter.
When 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.
A predictable state allows an attacker to hijack another user's session through cross site request forgery (CSRF).
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:258fc5c63dae79a99dc2e6c65fb18e05f5c62e44f54227db88141d603700d7c0 · sha256:b3b2029caadefa8b… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-340","description":"CWE-340 Generation of Predictable Numbers or Identifiers","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:258fc5c63dae79a99dc2e6c65fb18e05f5c62e44f54227db88141d603700d7c0 · sha256:b3b2029caadefa8b… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Mojolicious-Plugin-Web-Auth","product":"Mojolicious::Plugin::Web::Auth::OAuth2","programFiles":["lib/Mojolicious/Plugin/Web/Auth/OAuth2.pm"],"programRoutines":[{"name":"Mojolicious::Plugin::Web::Auth::OAuth2::_state_generator"}],"repo":"https://github.com/hayajo/Mojolicious-Plugin-Web-Auth","vendor":"HAYAJO","versions":[{"lessThanOrEqual":"0.17","status":"affected","version":"0","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:258fc5c63dae79a99dc2e6c65fb18e05f5c62e44f54227db88141d603700d7c0 · sha256:b3b2029caadefa8b… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:258fc5c63dae79a99dc2e6c65fb18e05f5c62e44f54227db88141d603700d7c0 · sha256:b3b2029caadefa8b… · /containers/adp/1/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:258fc5c63dae79a99dc2e6c65fb18e05f5c62e44f54227db88141d603700d7c0 · sha256:b3b2029caadefa8b… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-340","description":"CWE-340 Generation of Predictable Numbers or Identifiers","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:258fc5c63dae79a99dc2e6c65fb18e05f5c62e44f54227db88141d603700d7c0 · sha256:b3b2029caadefa8b… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"url":"http://www.openwall.com/lists/oss-security/2026/06/23/1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:258fc5c63dae79a99dc2e6c65fb18e05f5c62e44f54227db88141d603700d7c0 · sha256:b3b2029caadefa8b… · /containers/adp/0/references/0
{"tags":["technical-description"],"url":"https://datatracker.ietf.org/doc/html/rfc6749#section-10.12"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:258fc5c63dae79a99dc2e6c65fb18e05f5c62e44f54227db88141d603700d7c0 · sha256:b3b2029caadefa8b… · /containers/cna/references/1
{"url":"https://metacpan.org/release/HAYAJO/Mojolicious-Plugin-Web-Auth-0.17/source/lib/Mojolicious/Plugin/Web/Auth/OAuth2.pm#L129-131"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:258fc5c63dae79a99dc2e6c65fb18e05f5c62e44f54227db88141d603700d7c0 · sha256:b3b2029caadefa8b… · /containers/cna/references/0
{"tags":["patch"],"url":"https://security.metacpan.org/patches/M/Mojolicious-Plugin-Web-Auth/0.17/CVE-2026-9733-r2.patch"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:258fc5c63dae79a99dc2e6c65fb18e05f5c62e44f54227db88141d603700d7c0 · sha256:b3b2029caadefa8b… · /containers/cna/references/2
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.