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.

Project Subscriptions

No data.

Advisories

No advisories yet.

Fixes

Solution

Upgrade to Dancer2 2.2.0 or later.


Workaround

No workaround given by the vendor.

History

Tue, 22 Sep 2026 03:30:00 +0000

Type Values Removed Values Added
References

Tue, 22 Sep 2026 01:00:00 +0000

Type Values Removed Values Added
Description 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.
Title 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
Weaknesses CWE-41
References

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-09-22T02:09:44.163Z

Reserved: 2026-09-18T15:05:23.319Z

Link: CVE-2026-93709

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-22T01:16:55.610

Modified: 2026-09-22T03:16:58.530

Link: CVE-2026-93709

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-22T02:30:07Z

Weaknesses