CVE-2018-25047
MEDIUM 5.4CVSS 3.1Smarty Cross-site Scripting vulnerability in pages that use smarty_function_mailto
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.
- Published
- 15 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-hwq7-5vv9-c6cf
- Sources
- NVDJSONOSV GHSA-hwq7-5vv9-c6cfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* |
< 3.1.47 | 3.1.47 |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.2.1 | 4.2.1 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | Packagist | smarty/smarty | < 3.1.47 | 3.1.47 |
| OSV | Packagist | smarty/smarty | >= 4.0.0, < 4.2.1 | 4.2.1 |
References
- https://bugs.gentoo.org/870100 · Issue Tracking, Third Party Advisory, WEB
- https://github.com/smarty-php/smarty/issues/454 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/smarty-php/smarty/releases/tag/v3.1.47 · Release Notes, WEB
- https://github.com/smarty-php/smarty/releases/tag/v4.2.1 · Release Notes, WEB
- https://lists.debian.org/debian-lts-announce/2023/01/msg00002.html · Mailing List, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/202209-09 · Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/11/msg00013.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-25047 · ADVISORY
- https://github.com/smarty-php/smarty/commit/55ea25d1f50f0406fb1ccedd212c527977793fc9 · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2018-25047.yaml · WEB
- https://github.com/smarty-php/smarty · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 15 Sep 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 16 Sep 2022)