Mojolicious::Plugin::Statsd Metric Injection Vulnerability

Vulnerability

A vulnerability in Mojolicious::Plugin::Statsd, affecting versions through 0.04, allowed for metric injections. The plugin did not properly validate metric names and values, leaving room for the introduction of additional StatsD metrics from untrusted sources. This issue was addressed in version 0.06, which transitioned the plugin to use a separate StatsD client, Net::Statsd::Tiny, that mitigates similar injection risks. However, users must manually specify this client if they are using version 0.06 or later.

Impact

Exploitation of this vulnerability could lead to unauthorized metric injections, allowing for the manipulation of statistics reported to a StatsD server.

Reproduction

To reproduce this vulnerability, use Mojolicious::Plugin::Statsd version 0.04 or earlier. Send metrics with names or values that include unvalidated characters such as newlines, colons, or pipes. The plugin will accept these injections, creating additional, unintended StatsD metrics.

Remediation

Users can upgrade to Mojolicious::Plugin::Statsd version 0.06 or later, which includes the necessary fix. Instructions for downloading this version are available on MetaCPAN.

Added: May 26, 2026, 11:39 PM
Updated: May 26, 2026, 11:39 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
8.4
remediation
0.0
relevance
9.6
threat
4.8
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.