Dancer versions before 1.3400 for Perl pass unvalidated session ids from the session cookie to the session engine. read_session_id returns the cookie value as the session id without checking its characters, and Dancer hands it to the session engine to load the session. A remote attacker may cause path traversal or injection in a session engine that uses the id in a file path, cache command or query without checking it.
https://metacpan.org/release/BIGPRESH/Dancer-1.3400/changes
https://github.com/PerlDancer/Dancer/pull/1172
https://github.com/PerlDancer/Dancer/issues/1118
https://github.com/PerlDancer/Dancer/issues/1117
https://github.com/PerlDancer/Dancer/commit/5a68fddbaef903fd3bd58517ce585cde986716e4.patch