CVE-2018-25047: Smarty Cross-site Scripting vulnerability in pages that use smarty_function_mailto
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.51874%
CWE
Published
9/16/2022
Updated
2/3/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| smarty/smarty | composer | < 3.1.47 | 3.1.47 |
| smarty/smarty | composer | >= 4.0.0, < 4.2.1 | 4.2.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows the vulnerable function added htmlspecialchars() escaping to the address/text parameters in the mailto link generation. Prior to this fix, parameters were directly interpolated into HTML/JS contexts without proper encoding. The CVE description explicitly states the mailto plugin's handling of user parameters was the attack vector, and the GitHub issue #454 demonstrates a working XSS payload exploiting this lack of escaping.