---
id: CVE-2026-93710
title: >-
  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
  f…
summary: >-
  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
  f…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-460
product: Dancer2
affected:
  - Dancer2 >= 2.0.0 < 2.2.0
published: '2026-09-22'
updated: '2026-09-22'
sourceUpdated: '2026-09-22T20:17:12.270'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-93710'
references:
  - url: >-
      https://github.com/PerlDancer/Dancer2/commit/8fd31a32798f9aa25e4fccbd6c7cb9dd3a0c1029.patch
    label: 9b29abf9-4ab0-4765-b253-1875cd9b441e
  - url: >-
      https://github.com/PerlDancer/Dancer2/security/advisories/GHSA-v527-r4px-7vx7
    label: 9b29abf9-4ab0-4765-b253-1875cd9b441e
  - url: 'https://metacpan.org/release/CROMEDOME/Dancer2-2.2.0/changes'
    label: 9b29abf9-4ab0-4765-b253-1875cd9b441e
  - url: 'http://www.openwall.com/lists/oss-security/2026/09/22/2'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - cve.org
epss: 0.0063
epssPercentile: 0.47895
ingestedAt: '2026-09-22T00:55:54.015Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
