Live threats

All CVEs / Smarty

CVE-2018-25047Smarty

Medium 5.4

Priority
33
CVSS 3.1
5.4
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
Yes
Published
Sep 15, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

In Smarty before 3.1.47 and 4.x before 4.2.1, libs/plugins/function.mailto.php allows XSS. A web page that uses smarty_function_mailto, and that could be parameterized using GET or POST input parameters, could allow injection of JavaScript code by a user.

Original NVD text.

What to do

  1. Apply the vendor's security update for Smarty.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist smarty/smarty < 3.1.47 3.1.47 composer require "smarty/smarty:^3.1.47"
Packagist smarty/smarty ≥ 4.0.0 < 4.2.1 4.2.1 composer require "smarty/smarty:^4.2.1"

Per OSV / GitHub Advisories (GHSA-hwq7-5vv9-c6cf). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
smartysmarty< 3.1.47
smartysmarty≥ 4.0.0 < 4.2.1
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.