{"id":"CVE-2025-40915","state":"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.","publishedAt":"2025-06-11T17:09:50.664Z","updatedAt":"2025-06-11T17:57:28.026Z","severity":{"score":7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","source":"CISA-ADP"},"assigner":"CPANSec","products":["GRYPHON Mojolicious::Plugin::CSRF"],"affected":[{"vendor":"GRYPHON","product":"Mojolicious::Plugin::CSRF","packageName":"Mojolicious-Plugin-CSRF","defaultStatus":"unaffected","versions":[{"version":"1.03","status":"affected","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","repo":"https://github.com/gryphonshafer/Mojo-Plugin-CSRF"}],"references":["https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CSRF-1.04/diff/GRYPHON/Mojolicious-Plugin-CSRF-1.03","https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CSRF-1.04/changes"],"weaknesses":["CWE-338"],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/40xxx/CVE-2025-40915.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-40915","state":"PUBLISHED","datePublished":"2025-06-11T17:09:50.664Z","dateUpdated":"2025-06-11T17:57:28.026Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2025-04-16T09:05:34.361Z"},"containers":{"cna":{"title":"Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"GRYPHON","product":"Mojolicious::Plugin::CSRF","packageName":"Mojolicious-Plugin-CSRF","defaultStatus":"unaffected","versions":[{"version":"1.03","status":"affected","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","repo":"https://github.com/gryphonshafer/Mojo-Plugin-CSRF"}],"references":[{"url":"https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CSRF-1.04/diff/GRYPHON/Mojolicious-Plugin-CSRF-1.03"},{"url":"https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CSRF-1.04/changes"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2025-06-11T17:09:50.664Z"},"impacts":[{"capecId":"CAPEC-62","descriptions":[{"lang":"en","value":"CAPEC-62: Cross Site Request Forgery"}]}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Users of version 1.03 should upgrade to 1.04."}],"value":"Users of version 1.03 should upgrade to 1.04."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","integrityImpact":"LOW","userInteraction":"NONE","attackComplexity":"HIGH","availabilityImpact":"LOW","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-06-11T17:52:49.542565Z","id":"CVE-2025-40915","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-06-11T17:57:28.026Z"}}]}}}