CVE-2026-93709 PUBLISHED

Dancer2 versions before 2.2.0 for Perl serve a layout as a page when an equivalent spelling of its path misses the guard in the AutoPage handler

Assigner: CPANSec
Reserved: 18.09.2026 Published: 22.09.2026 Updated: 22.09.2026

Dancer2 versions before 2.2.0 for Perl serve a layout as a page when an equivalent spelling of its path misses the guard in the AutoPage handler.

The handler compares the request path against the layout directory name as text, while the lookup that follows canonicalises it. A doubled slash, a dot segment, a percent-encoded slash, or a different capitalisation on a case-insensitive filesystem therefore misses the guard.

The handler is off by default, enabled with auto_page. The layout wrapping every page is already public, so this discloses one of the application's other layouts.

Product Status

Package Collection https://cpan.org/modules
Package Name Dancer2
Versions Default: unaffected
  • affected from 0 to 2.2.0 (excl.)

Solutions

Upgrade to Dancer2 2.2.0 or later.

References

Problem Types

  • CWE-41 Improper Resolution of Path Equivalence CWE