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::Email

DESCRIPTION

Smolder utility class used to send multi-part MIME email messages

METHODS

send_mime_mail

This class method will create and send the email. It receives the following named arguments:

name

The name of the email message. This directly corresponds to the template used for the email creation (under the templates/Email directory).

to

The 'to' address of the recipient

subject

The subject line of the email

tt_params

This is a hash ref that will be passed to the template in order to create the email message

Smolder::Email->send_mime_email(
    name        => 'some_email',
    to          => 'someone@something.com',
    subject     => 'Something for you',
    tt_params   => {
        foo => $foo,
        bar => $bar,
    },
);

The 'From' address for all emails is determined from the FromAddress in conf/smolder.conf. If an error occurs, the error message will be returned.