CVE-2026-13577: Dancer2 versions before 2.2.0 for Perl generate insecure session ids when required CSPRNG modules are unavailable

Published Jul 20, 2026
·
Updated

Dancer2 versions before 2.2.0 for Perl generate insecure session ids when required CSPRNG modules are unavailable.

Dancer2::Core::Role::SessionFactory::generateid 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 Software

1 affected component
Dancer2 Dancer2 (Perl)<2.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Dancer2 (Perl) to a version that resolves this vulnerability.

    Fixed in 2.2.0

Event History

Jul 20, 2026
CVE Published
via MITRE·07:11 AM
Data Sourced
via MITRE·07:11 AM
RemedyDescriptionWeakness
Data Sourced
via NVD·08:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-13577?

CVE-2026-13577 has a high severity rating of 8.2 according to the CVSS 3.1 scores.

2

How do I fix CVE-2026-13577?

To fix CVE-2026-13577, ensure that CSPRNG modules like Math::Random::ISAAC::XS or Crypt::URandom are available and properly configured in your environment.

3

What systems are affected by CVE-2026-13577?

CVE-2026-13577 affects Dancer2 versions through 2.1.0 when CSPRNG modules are unavailable.

4

What are the consequences of CVE-2026-13577?

CVE-2026-13577 can lead to the generation of insecure session IDs, increasing the risk of session hijacking and related attacks.

5

How can I check if I am impacted by CVE-2026-13577?

To check for impact from CVE-2026-13577, review your Dancer2 deployment for CSPRNG module availability and verify the version in use.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203