CVE-2025-40915
published high CVSS 3.1 · 7.0Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GRYPHON | — | Mojolicious-Plugin-CSRFMojolicious::Plugin::CSRF · 1.03 · Other versions: unaffected | Affected | Not stated | CPANSec |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GRYPHON | Mojolicious::Plugin::CSRF | 1.03 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
1- CWE-338 CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator
References
2Provider assertions
2CPANSec · cna
Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8f615d4b252bd1dd8fe03e5c25e38d96a80b4f033372b335d40905873652f4ff
- Ingested
- 23 Sep 2026, 08:48:23 UTC
- Source record
- Official CVE record