Moderate severityNVD Advisory· Published Sep 14, 2022· Updated Nov 3, 2025
CVE-2018-25047
CVE-2018-25047
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
smarty/smartyPackagist | < 3.1.47 | 3.1.47 |
smarty/smartyPackagist | >= 4.0.0, < 4.2.1 | 4.2.1 |
Affected products
2Patches
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
11- github.com/advisories/GHSA-hwq7-5vv9-c6cfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-25047ghsaADVISORY
- security.gentoo.org/glsa/202209-09ghsavendor-advisoryWEB
- bugs.gentoo.org/870100ghsaWEB
- github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2018-25047.yamlghsaWEB
- github.com/smarty-php/smarty/commit/55ea25d1f50f0406fb1ccedd212c527977793fc9ghsaWEB
- github.com/smarty-php/smarty/issues/454ghsaWEB
- github.com/smarty-php/smarty/releases/tag/v3.1.47ghsaWEB
- github.com/smarty-php/smarty/releases/tag/v4.2.1ghsaWEB
- lists.debian.org/debian-lts-announce/2023/01/msg00002.htmlghsamailing-listWEB
- lists.debian.org/debian-lts-announce/2024/11/msg00013.htmlghsaWEB
News mentions
0No linked articles in our index yet.