High
Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-40915
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 03:42 UTC · Revision 1
Source evidence
Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens
core-osv · Original sourcePublished 11 Jun 2025, 17:09 UTC
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.
osv:CVE-2025-40915
Complete source record
{
"id": "a490ca0c290e2c67e98f4111b16f32611445db6b7bc51e54d8945b35effeaef9",
"url": "https://osv.dev/vulnerability/CVE-2025-40915",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens",
"summary": "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.",
"evidence": "osv:CVE-2025-40915",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2025-40915",
"aliases": [
"CVE-2025-40915"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gryphonshafer/mojo-plugin-csrf",
"type": "GIT",
"events": [
{
"introduced": "0e8a088c37709430dc6c474ae05ae863a11e4c8e"
},
{
"last_affected": "0e8a088c37709430dc6c474ae05ae863a11e4c8e"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "1.03"
},
{
"last_affected": "1.03"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
}
],
"versions": [
"1.03",
"v1.03"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40915.json"
}
}
],
"modified": "2026-10-28T02:30:42.094334666Z",
"provider": "osv",
"references": [
"https://cpan.org/modules",
"https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CSRF-1.04/changes",
"https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CSRF-1.04/diff/GRYPHON/Mojolicious-Plugin-CSRF-1.03",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40915.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-40915",
"https://github.com/gryphonshafer/Mojo-Plugin-CSRF"
],
"provider_metadata": {
"cwe_ids": [
"CWE-338"
],
"cna_assigner": "CPANSec",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40915.json"
}
},
"related_cves": [
{
"value": "CVE-2025-40915",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 509934,
"published_at": "2025-06-11T17:09:50.664+00:00"
}