Vulnerability · Published Sep 22, 2026 · Assigned by CPANSec

CVE-2026-93710Dancer2 versions from 2.0.0 before 2.2.0 for Perl dispatch a route that a dying hook refused when the exception handler halts the response in compile_hooks

High 7.5

In plain English

A high-severity security flaw in Dancer2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 49.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Dancer2 versions from 2.0.0 before 2.2.0 for Perl dispatch a route that a dying hook refused when the exception handler halts the response in compile_hooks. A hook that dies fires core.app.hook_exception, then calls cleanup unless the failing hook is the exception handler. A handler that halts does not stop that cleanup, which discards the request, response and session the dispatcher has yet to read, so the refused route runs. The handler has to halt the response object by calling its halt method or setting is_halted: the halt keyword unwinds through with_return before cleanup runs. A check in a before hook is not enforced: the caller gets the refusal, while the route body runs and its writes land.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:14libdancer2-perl2.2.2-1DEBIAN-CVE-2026-93710
Ubuntu:22.04:LTSlibdancer2-perlno fix listedUBUNTU-CVE-2026-93710
Ubuntu:24.04:LTSlibdancer2-perlno fix listedUBUNTU-CVE-2026-93710
Ubuntu:26.04:LTSlibdancer2-perlno fix listedUBUNTU-CVE-2026-93710
Ubuntu:26.10libdancer2-perlno fix listedUBUNTU-CVE-2026-93710

Affected products (as reported)

VendorProductVersions
Dancer2 2.0.0 – before 2.2.0

Weakness: CWE-460 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References