CPANSA-Dancer2-2026-93710: Dancer2 vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-09-22T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-09-22T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 7.5 | Severity | High |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability 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.
Vulnerabilities
CVE-2026-93710
Vulnerability DescriptionDancer2 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.
| Weakness | CWE-460 : Improper Cleanup on Thrown Exception |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Dancer2 greater than or equal 2.0.0 and less than 2.2.0 |
|
Fixed
- Dancer2 greater than or equal 2.2.0
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-Dancer2-2026-93710 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-dancer2-2026-93710.json - https://github.com/PerlDancer/Dancer2/commit/8fd31a32798f9aa25e4fccbd6c7cb9dd3a0c1029.patch external
https://github.com/PerlDancer/Dancer2/commit/8fd31a32798f9aa25e4fccbd6c7cb9dd3a0c1029.patch - https://github.com/PerlDancer/Dancer2/security/advisories/GHSA-v527-r4px-7vx7 external
https://github.com/PerlDancer/Dancer2/security/advisories/GHSA-v527-r4px-7vx7 - https://metacpan.org/release/CROMEDOME/Dancer2-2.2.0/changes external
https://metacpan.org/release/CROMEDOME/Dancer2-2.2.0/changes - http://www.openwall.com/lists/oss-security/2026/09/22/2 external
http://www.openwall.com/lists/oss-security/2026/09/22/2 - CVE-2026-93710 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-93710
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Tue Sep 22 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/