CVE-2025-40915

Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens

State
Published
Severity
7.0 High
Published
Jun 11, 2025
Updated
Jun 11, 2025
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:LCISA-ADP

Weaknesses

  • CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator

Affected Products

ProductVersions
Mojolicious::Plugin::CSRFGRYPHON
  • 1.03Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.