{"id":"CVE-2025-40915","aliases":["EUVD-2025-18132","GHSA-mqr9-mgqq-52rq"],"status":"published","title":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens","description":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens.\n\nThat version of the module generates tokens as an MD5 of the process id, the current time, and a single call to the built-in rand() function.","severity":{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-09","score":0.00288,"percentile":0.21542,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-338"],"published":"2025-06-11T17:09:50Z","modified":"2026-10-28T02:30:42Z","products":[{"vendor":"gryphon","product":"mojolicious::plugin::csrf"}],"references":[{"url":"https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CSRF-1.04/diff/GRYPHON/Mojolicious-Plugin-CSRF-1.03","tags":["web"]},{"url":"https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CSRF-1.04/changes","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40915","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mqr9-mgqq-52rq"},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40915.json","tags":["advisory"]},{"url":"https://github.com/gryphonshafer/Mojo-Plugin-CSRF","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-40915","title":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens","description":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens.\n\nThat version of the module generates tokens as an MD5 of the process id, the current time, and a single call to the built-in rand() function.","status":"published","published":"2025-06-11T17:09:50.664Z","modified":"2025-06-11T17:57:28.026Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high","assessor":"adp"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T14:32:34.773122Z"}],"euvd":[{"id":"EUVD-2025-18132","description":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens.\n\nThat version of the module generates tokens as an MD5 of the process id, the current time, and a single call to the built-in rand() function.","status":"published","published":"2025-06-11T17:09:50Z","modified":"2025-06-11T17:57:28Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high"}],"updated_at":"2026-11-02T20:32:24.98161Z"}],"ghsa":[{"id":"GHSA-mqr9-mgqq-52rq","title":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF...","description":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens.\n\nThat version of the module generates tokens as an MD5 of the process id, the current time, and a single call to the built-in rand() function.","status":"published","published":"2025-06-11T18:35:43Z","modified":"2025-06-11T18:35:49Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T15:02:41.633611Z"}],"nvd":[{"id":"CVE-2025-40915","description":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens.\n\nThat version of the module generates tokens as an MD5 of the process id, the current time, and a single call to the built-in rand() function.","status":"published","published":"2025-06-11T17:15:42.793Z","modified":"2026-06-17T09:22:17.237Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high","assessor":"secondary"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T14:11:11.789448Z"}],"osv":[{"id":"CVE-2025-40915","title":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens","description":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens.\n\nThat version of the module generates tokens as an MD5 of the process id, the current time, and a single call to the built-in rand() function.","status":"published","published":"2025-06-11T17:09:50.664Z","modified":"2026-10-28T02:30:42.094334666Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T15:44:49.394967Z"}]}}
