CVE-2018-25047Smarty
Medium 5.4
Follow: this CVE · Smarty · Smarty We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Smarty.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| smarty | smarty | < 3.1.47 |
| smarty | smarty | ≥ 4.0.0 < 4.2.1 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.gentoo.org Issue Tracking Third Party Advisory
- github.com Exploit Issue Tracking Patch
- github.com Release Notes
- github.com Release Notes
- lists.debian.org Mailing List Third Party Advisory
- security.gentoo.org Third Party Advisory
- lists.debian.org