{"id":"CVE-2018-25047","published":"2022-09-14T00:00:00Z","modified":"2025-11-03T21:44:10Z","title":"In Smarty before 3.1.47 and 4.x before 4.2.1, libs/plugins/function.mailto.php allows XSS","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01174,"percentile":0.68272,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/smarty-php/smarty/issues/454","tags":[]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v4.2.1","tags":[]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v3.1.47","tags":[]},{"url":"https://bugs.gentoo.org/870100","tags":[]},{"url":"https://security.gentoo.org/glsa/202209-09","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00002.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00013.html","tags":[]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":13.65}]},"affected":[{"ecosystem":"Packagist","package":"smarty/smarty","vulnerableRanges":["<3.1.47",">=4.0.0, <4.2.1"],"patched":["3.1.47","4.2.1"],"from":["GHSA-hwq7-5vv9-c6cf"],"provenance":"source"}],"summary":{"text":"The Smarty template engine (versions before 3.1.47 and 4.x before 4.2.1) contains a cross-site scripting flaw in the libs/plugins/function.mailto.php component. An attacker could inject JavaScript into a web page that uses the smarty_function_mailto plugin and takes parameters from GET or POST input, provided a user is induced to interact with the crafted request or page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:17Z"},"euvd":{"id":"EUVD-2022-6844","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-29454","published":"2022-01-10","fixed":"4.0.2","kev":false},{"cve":"CVE-2021-21408","published":"2022-01-10","fixed":"4.0.3","kev":false},{"cve":"CVE-2022-29221","published":"2022-05-24","fixed":"4.1.1","kev":false,"link":{"from":"CVE-2022-29221","to":"CVE-2018-25047","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:smarty/smarty","fromFixed":"3.1.45","toFixed":"3.1.47","daysApart":113},{"kind":"version-step","provenance":"source","package":"Packagist:smarty/smarty","fromFixed":"4.1.1","toFixed":"4.2.1","daysApart":113}]}},{"cve":"CVE-2018-25047","published":"2022-09-14","fixed":"4.2.1","kev":false},{"cve":"CVE-2023-28447","published":"2023-03-28","fixed":"4.3.1","kev":false,"link":{"from":"CVE-2018-25047","to":"CVE-2023-28447","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:smarty/smarty","fromFixed":"3.1.47","toFixed":"3.1.48","daysApart":195},{"kind":"version-step","provenance":"source","package":"Packagist:smarty/smarty","fromFixed":"4.2.1","toFixed":"4.3.1","daysApart":195}]}},{"cve":"CVE-2024-35226","published":"2024-05-28","fixed":"5.1.1","kev":false},{"cve":"CVE-2026-62992","published":"2026-08-07","fixed":"5.8.2","kev":false}],"package":"Packagist:smarty/smarty"}}