{"id":"CVE-2025-40915","summary":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens","details":"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.","modified":"2026-07-15T01:48:58.977176876Z","published":"2025-06-11T17:09:50.664Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40915.json","cna_assigner":"CPANSec","cwe_ids":["CWE-338"]},"references":[{"type":"WEB","url":"https://cpan.org/modules"},{"type":"WEB","url":"https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CSRF-1.04/changes"},{"type":"WEB","url":"https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CSRF-1.04/diff/GRYPHON/Mojolicious-Plugin-CSRF-1.03"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40915.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40915"},{"type":"PACKAGE","url":"https://github.com/gryphonshafer/Mojo-Plugin-CSRF"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gryphonshafer/mojo-plugin-csrf","events":[{"introduced":"0e8a088c37709430dc6c474ae05ae863a11e4c8e"},{"last_affected":"0e8a088c37709430dc6c474ae05ae863a11e4c8e"}],"database_specific":{"extracted_events":[{"introduced":"1.03"},{"last_affected":"1.03"}],"source":"AFFECTED_FIELD"}}],"versions":["1.03","v1.03"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40915.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L"}]}