CVE-2026-93710Dancer2 versions from 2.0.0 before 2.2.0 for Perl dispatch a route that a dying hook…
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libdancer2-perl | Fix pending | UBUNTU-CVE-2026-93710 | |
| Ubuntu 26.04 | libdancer2-perl | Under investigation | UBUNTU-CVE-2026-93710 | |
| Ubuntu 24.04 | libdancer2-perl | Under investigation | UBUNTU-CVE-2026-93710 | |
| Ubuntu 22.04 | libdancer2-perl | Under investigation | UBUNTU-CVE-2026-93710 | |
| Ubuntu 20.04 | libdancer2-perl | Fix pending | UBUNTU-CVE-2026-93710 | |
| Ubuntu 18.04 | libdancer2-perl | Fix pending | UBUNTU-CVE-2026-93710 | |
| Ubuntu 16.04 | libdancer2-perl | Fix pending | UBUNTU-CVE-2026-93710 | |
| Debian 14 | libdancer2-perl | Fixed | 2.2.2-1 | DEBIAN-CVE-2026-93710 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Dancer2: affected: 2.0.0 to before 2.2.0; fixed in
2.2.0
Solution: Upgrade to Dancer2 2.2.0 or later.
Vendor advisories:
- https://github.com/PerlDancer/Dancer2/security/advisories/GHSA-v527-r4px-7vx7 (vendor-advisory)
- https://github.com/PerlDancer/Dancer2/commit/8fd31a32798f9aa25e4fccbd6c7cb9dd3a0c1029.pat… (patch)
- https://metacpan.org/release/CROMEDOME/Dancer2-2.2.0/changes (release-notes)
References
- https://github.com/PerlDancer/Dancer2/security/advisories/GHSA-v527-r4px-7vx7
- https://github.com/PerlDancer/Dancer2/commit/8fd31a32798f9aa25e4fccbd6c7cb9dd3a0c1029.patch
- https://metacpan.org/release/CROMEDOME/Dancer2-2.2.0/changes
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.