Vulnerability · Published Jun 11, 2025 · Assigned by CPANSec

CVE-2025-40915Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens

High 7.0

In plain English

A high-severity security flaw in Mojolicious::Plugin::CSRF from GRYPHON. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities).

Severity (CVSS 3.1)7.0High
Exploit odds (30 days)0.3%top 79.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens. That 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 products (as reported)

VendorProductVersions
GRYPHON Mojolicious::Plugin::CSRF 1.03

Weakness: CWE-338 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L

References