Security Advisories (1)
CVE-2024-58041 (2026-02-24)

Smolder versions through 1.51 for Perl uses insecure rand() function for cryptographic functions. Smolder 1.51 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. Specifically Smolder::DB::Developer uses the Data::Random library which specifically states that it is "Useful mostly for test programs". Data::Random uses the rand() function.

NAME

Smolder::Util

DESCRIPTION

Collection of various useful routines for Smolder

ROUTINES

pass_fail_color

Given a ratio, will return an RRGGBB color suitable for a web page as a visual indicator of a test's success. Green == 100%, Red == 0%.

format_time

Given a number of seconds, format it as string of the format HH:MM:SS or MM:SS or SS.

Smolder::Util::format_time(1000); # prints 16:40
Smolder::Util::format_time(35);   # prints 35
Smolder::Util::format_time(100);  # prints 1:40

url_base

This method will return the base url for the installed version of Smolder.