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.
References
Configurations
No configuration.
History
22 Sep 2026, 20:17
| Type | Values Removed | Values Added |
|---|---|---|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 7.5 |
22 Sep 2026, 03:16
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
22 Sep 2026, 01:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-09-22 01:16
Updated : 2026-09-22 20:17
NVD link : CVE-2026-93710
Mitre link : CVE-2026-93710
CVE.ORG link : CVE-2026-93710
JSON object : View
Products Affected
No product.
CWE
CWE-460
Improper Cleanup on Thrown Exception
