BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-40915 in Mojolicious products

High 7.0

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.

Affects 0 products from 2 vendors. Facts below cite their sources.

CVSS 3.17.0
EPSS0.5%
EPSS percentile37th
FixUnknown

Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact.

Affected products and versions

VendorProductAffected versions
Mojolicious — —
Plugin — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-40915
BreachSpider IDBS-2025-GLOBAL-259416-H
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
Published2025-06-11
Last modified2026-04-15
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-338: CWE-338

Analysis AI-written, not human-reviewed

Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens, which can be exploited to predict and forge tokens.

An attacker can exploit the weak randomness of the CSRF token generation by predicting the tokens based on the process ID, current time, and the output of the rand() function. This allows the attacker to perform Cross-Site Request Forgery (CSRF) attacks.

Questions

What is CVE-2025-40915?

Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens, which can be exploited to predict and forge tokens.

What is the CVSS score for CVE-2025-40915?

CVE-2025-40915 has CVSS 7.0 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L. EPSS: 0.5%.

Is CVE-2025-40915 actively exploited?

No confirmed active exploitation of CVE-2025-40915 as of 2026-05-30.

How do I remediate CVE-2025-40915?

Priority: HIGH.

What systems are affected by CVE-2025-40915?

CVE-2025-40915 affects Mojolicious; Plugin.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Mojolicious","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-15.