🛡️ CVE-2018-25047 — smarty

⚪ Unknown ✅ No Known Exploit CWE-79 OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

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

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CWE CWE-79
Public Exploit ✅ No
Source OSV
Published 2022-09-16
Updated 2026-08-12
Modified 2025-11-04
Fix URL N/A

Affected Packages

Software From version Fixed in
smarty/smarty 4.0.0 4.2.1

Similar Threats

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.