Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Smarty versions before 3.1.47 and from 4.0.0 before 4.2.1 are vulnerable to cross-site scripting in the mailto plugin (smarty_function_mailto). An attacker can exploit this on a web page that uses the plugin and accepts GET or POST parameters, injecting JavaScript that runs for a user. Upgrade smarty/smarty to 3.1.47 or 4.2.1.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 5.4 | Medium | 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | GitHub Advisory Database |
- CISA KEV Not listed.
- EPSS 0.012, the 67th percentile, on 25 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:26 UTC First seen by agentprime
- 31 Oct 2026, 14:26 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-hwq7-5vv9-c6cf
- OSV: GHSA-hwq7-5vv9-c6cf
- nvd.nist.gov/vuln/detail/CVE-2018-25047
- github.com/smarty-php/smarty/issues/454
- github.com/smarty-php/smarty/commit/55ea25d1f50f0406fb1ccedd212c527977793fc9
- bugs.gentoo.org/870100
- github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2018-25047.yaml
- github.com/smarty-php/smarty
- github.com/smarty-php/smarty/releases/tag/v3.1.47
- github.com/smarty-php/smarty/releases/tag/v4.2.1
- lists.debian.org/debian-lts-announce/2023/01/msg00002.html
- lists.debian.org/debian-lts-announce/2024/11/msg00013.html
- security.gentoo.org/glsa/202209-09