Security Advisories (1)
CVE-2026-46740 (2026-05-26)

Mojolicious::Plugin::Statsd versions through 0.04 for Perl allowed metric injections. The metric names and set values were not checked for newlines, colons or pipes. Metrics generated from untrusted sources could inject additional statsd metrics. Version 0.06 changes the module from being a statsd client to using a separate statsd client. It defaults to using a version of Net::Statsd::Tiny that fixes a similar issue (CVE-2026-46720).

NAME

Mojolicious::Plugin::Statsd::Adapter::Statsd - Statsd UDP recording

DESCRIPTION

This adapter for Mojolicious::Plugin::Statsd sends stats immediately over UDP to a statsd service.

INHERITANCE

Mojolicious::Plugin::Statsd::Adapter::Statsd is a Mojo::Base

ATTRIBUTES

addr

The statsd service address. Defaults to the value of $ENV{STATSD_ADDR}, or localhost:8125.

socket

An IO::Socket::INET. Opened connecting to "addr" when necessary.

METHODS

timing

See "timing" in Mojolicious::Plugin::Statsd.

counter

See "counter" in Mojolicious::Plugin::Statsd.

gauge

See "gauge" in Mojolicious::Plugin::Statsd.

set_add

See "set_add" in Mojolicious::Plugin::Statsd.