CVE-2026-13577
High · 8.2CVSS
8.2
EPSS
0.6%
Published
Jul 20, 2026
CISA due date
—
The record
Dancer2 versions before 2.2.0 for Perl generate insecure session ids when required CSPRNG modules are unavailable. Dancer2::Core::Role::SessionFactory::generate_id silently falls back to a built-in rand-derived session id unless both Math::Random::ISAAC::XS and Crypt::URandom are available. The fallback session id is generated from a SHA-1 hash of a call to the built-in rand function, the absolute path of the Dancer2::Core::Role::SessionFactory module, an internal counter, the process id, the module instance memory address, and a shuffled string of characters (using the List::Util::shuffle function, which also uses the built-in rand function). These are all low-entropy and easily guessed sources. The built-in rand() function is seeded with 32-bits and considered unsuitable for security applications. Predictable session ids could allow an attacker to gain access to systems.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-118986 CallBackery versions before 0.62.0 for Perl allow session cookie forgery via a signing… CWE-338
- CVE-2026-102813 An authentication flaw exists in the password-recovery functionality of TP-Link RE305 V3. CWE-338
- CVE-2026-74887 openssl_encrypt before 1.4.0 imports Python's non-cryptographic 'random' module (Mersenne… CWE-338
- CVE-2026-73567 sm-crypto provides JavaScript implementations of the Chinese cryptographic algorithms… CWE-338
- CVE-2026-71851 crypto-js is a JavaScript library of crypto standards. CWE-338
- CVE-2026-9205 IBM Langflow OSS contains a weak cryptographic key derivation vulnerability in the… CWE-338
- CVE-2026-47882 When enabling Spring Boot DevTools support for a remote application target (for example a… CWE-338
- CVE-2026-64798 Joomla Extension - regularlabs.com - Insecure login URL keys in IP login extension… CWE-338