CVE-2025-40915

Source
https://cve.org/CVERecord?id=CVE-2025-40915
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40915.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-40915
Published
2025-06-11T17:09:50Z
Modified
2026-10-28T02:30:42Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L CVSS Calculator
Summary
Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens
Details

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.

Database specific
{
    "cna_assigner":  "CPANSec",
    "cwe_ids":  [
        "CWE-338"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40915.json"
}
References

Affected packages

Git / github.com/gryphonshafer/mojo-plugin-csrf

Affected ranges

Type
GIT
Repo
https://github.com/gryphonshafer/mojo-plugin-csrf
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "1.03"
                },
                {
                    "last_affected":  "1.03"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandaloneSingleVersion"
        }
    ]
}

Affected versions

1.*
1.03
v1.*
v1.03

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40915.json"