🛡️ CVE-2018-25047 — smarty
Description
Smarty 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 cross-site scripting. 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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.
Weakness class
CVE-2018-25047 is classified as CWE-79: Cross-site Scripting (XSS). User-supplied data is written into a page without escaping, so attacker script runs in the browser of anyone who views it.
Affected software
CVE-2018-25047 is recorded against 1 package.
- smarty/smarty (from 4.0.0 up to 4.2.1)
Timeline and source
Published on 16 September 2022 and last revised on 4 November 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
bugs.gentoo.org (Web)
github.com (Web)
github.com (Package)
github.com (Web)
github.com (Web)
lists.debian.org (Web)
lists.debian.org (Web)
security.gentoo.org (Web)
CVE-2018-25047 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| smarty/smarty | 4.0.0 | 4.2.1 |
Similar Threats
- Unknown CVE-2026-62992
- Unknown CVE-2026-62996
- High CVE-2024-35226
- High CVE-2023-28447
- High CVE-2022-29221
More CVE 2018 advisories
Browse all of CVE 2018 in the advisory index.
Free Vulnerability Check
Is your site affected by CVE-2018-25047?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2018-25047 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.