CVE-2026-13577: Dancer2 (Perl module) · Generation of Predictable Numbers or Identifiers
Affects Dancer2 (Perl module)Source CVE Database V5
Not known to be exploited · CVSS 8.2 High : upgrade to 2.2.0 soon.
Data as of 2 Dec 2026, 18:37 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.2.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Upgrade Dancer2 (Perl module) to 2.2.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
CPANDancer2pkg:cpan/Dancer2Other threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, ensure that the required CSPRNG modules Math::Random::ISAAC::XS and Crypt::URandom are installed and available to Dancer2 to avoid fallback to insecure session ID generation. Avoid running affected versions without these modules.
Description
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.
References
- github.com/PerlDancer/Dancer2/blob/v2.1.0/lib/Dancer2/Core/Role/SessionFactory.pm (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-5080 (opens in a new tab)
- metacpan.org/release/CROMEDOME/Dancer2-2.2.0/changes (opens in a new tab)
- github.com/PerlDancer/Dancer2/issues/1807 (opens in a new tab)
- github.com/PerlDancer/Dancer2/pull/1804 (opens in a new tab)