Security Advisories (13)
CPANSA-Mojolicious-2022-03 (2022-12-10)

Mojo::DOM did not correctly parse <script> tags.

CPANSA-Mojolicious-2021-02 (2021-06-01)

Small sessions could be used as part of a brute-force attack to decode the session secret.

CVE-2021-47208 (2021-03-16)

A bug in format detection can potentially be exploited for a DoS attack.

CPANSA-Mojolicious-2018-03 (2018-05-19)

Mojo::UserAgent was not checking peer SSL certificates by default.

CPANSA-Mojolicious-2018-02 (2018-05-11)

GET requests with embedded backslashes can be used to access local files on Windows hosts

CVE-2018-25100 (2018-02-13)

Mojo::UserAgent::CookieJar leaks old cookies because of the missing host_only flag on empty domain.

CPANSA-Mojolicious-2015-01 (2015-02-02)

Directory traversal on Windows

CPANSA-Mojolicious-2014-01 (2014-10-07)

Context sensitivity of method param could lead to parameter injection attacks.

CVE-2011-1589 (2011-04-05)

Directory traversal vulnerability in Path.pm in Mojolicious before 1.16 allows remote attackers to read arbitrary files via a %2f..%2f (encoded slash dot dot slash) in a URI.

CVE-2010-4803 (2011-05-03)

Mojolicious before 0.999927 does not properly implement HMAC-MD5 checksums, which has unspecified impact and remote attack vectors.

CVE-2010-4802 (2011-05-03)

Commands.pm in Mojolicious before 0.999928 does not properly perform CGI environment detection, which has unspecified impact and remote attack vectors.

CVE-2011-1841 (2011-03-10)

Cross-site scripting (XSS) vulnerability in the link_to helper in Mojolicious before 1.12 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors.

CVE-2024-58134 (2025-05-03)

Mojolicious versions from 0.999922 for Perl uses a hard coded string, or the application's class name, as an HMAC session cookie secret by default. These predictable default secrets can be exploited by an attacker to forge session cookies.  An attacker who knows or guesses the secret could compute valid HMAC signatures for the session cookie, allowing them to tamper with or hijack another user’s session.

Changes for version 0.999922 - 2010-02-11

  • Added session support.
  • Added signed cookie support.
  • Added I18N support. (vti, memowe)
  • Added template detection again, you can now just mix multiple template engines and the renderer will automatically pick the right template. So you don't have to use the "handler" argument anymore, even though it's still available and overrides auto detection.
  • Added Flash Policy Server example. (xantus)
  • Added more reference docs.
  • Added .gitignore generator command. (marcus)
  • Added automatic CGI/FastCGI environment detection to Mojo::Commands.
  • Renamed Mojolicious::Book to Mojolicious::Guides.
  • Removed hot deployment support for Windows because of incompatibilities between Active Perl and Strawberry Perl.
  • Made process id and lock file defaults more userfriendly in Mojo::Server::Daemon.
  • Updated for Perl 5.12, not using the bytes pragma anymore.
  • Fixed a bug where WebSocket servers could not directly start sending messages.
  • Fixed connection id handling in Mojo::Client.
  • Fixed multiple epoll bugs.
  • Fixed Mojo::IOLoop connection check.
  • Fixed identification headers.
  • Fixed a bug where exception pages would be rendered multiple times.
  • Fixed reverse proxy support. (vti)
  • Fixed error state in Mojo::Stateful. (vti)
  • Fixed seek bug. (lee7)
  • Fixed a PSGI header bug. (lee7)
  • Fixed typos.

Documentation

Mojolicious Guide To The Galaxy
Frequently Asked Questions

Modules

The Box!
Asset Base Class
File Asset
In-Memory Asset
Minimal Base Class For Mojo Projects
ByteStream
Async IO HTTP 1.1 And WebSocket Client
Command Base Class
CGI Command
Daemon Command
Prefork Daemon Command
FastCGI Command
Generator Command
Application Generator Command
Gitignore Generator Command
Makefile Generator Command
PSGI Generator Command
Get Command
Test Command
Version Command
Commands
HTTP 1.1 Content Base Class
HTTP 1.1 MultiPart Content Container
HTTP 1.1 Content Container
HTTP 1.1 Cookie Base Class
HTTP 1.1 Request Cookie Container
HTTP 1.1 Response Cookie Container
Cookie Jar For HTTP 1.1 User Agents
HTTP 1.1 Date Container
Exceptions With Context
HTTP 1.1 Filter Base Class
HTTP 1.1 Chunked Filter
Headers
Hello World!
Detect And Access The Project Root Directory In Mojo
Minimalistic Event Loop For TCP Clients And Servers
Minimalistic JSON
Loader
Simple Logger For Mojo
HTTP 1.1 Message Base Class
HTTP 1.1 Request Container
HTTP 1.1 Response Container
Parameter Container
Path
HTTP Server Base Class
CGI Server
Async IO HTTP 1.1 And WebSocket Server
Preforking HTTP 1.1 And WebSocket Server
FastCGI Server
PSGI Server
Stateful Base Class
Perlish Templates!
Transaction Base Class
HTTP 1.1 Transaction Container
WebSocket Transaction Container
Uniform Resource Locator
Upload Container
Controller Base Class
Routes Dispatcher
Serve Static Files
MIME Type Based Renderer
Always Find Your Destination With Routes
Routes Visitor
Routes Pattern
Signed Cookie Based Sessions
Controller Base Class
MIME Types
The Web In A Box!
Generator Command
App Generator Command
Lite App Generator Command
Controller Base Class
Micro Web Framework
Plugin Base Class
Agent Condition Plugin
Default Helpers Plugin
EP Renderer Plugin
EPL Renderer Plugin
Header Condition Plugin
Intenationalization Plugin
JSON Configuration Plugin
POD Renderer Plugin
Powered By Plugin
Request Timer Plugin
Testing Mojo!
Server Tests

Provides

in lib/Mojo/JSON.pm
in lib/Mojo/Server/PSGI.pm
in lib/Mojolicious/Plugin/I18n.pm