CWE
79
Advisory Published
Advisory Published
Updated

CVE-2018-25047: XSS

First published: Wed Sep 14 2022(Updated: )

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.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
composer/smarty/smarty<3.1.47>=4.0.0<4.2.1
debian/smarty3<=3.1.39-2+deb11u1
3.1.39-2+deb11u2
3.1.47-2+deb12u1
3.1.48-2
debian/smarty4
4.3.0-1+deb12u2
4.5.4-1
Smarty<3.1.47
Smarty>=4.0.0<4.2.1
Debian=10.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2018-25047?

    CVE-2018-25047 is considered to have a high severity due to its potential for allowing cross-site scripting (XSS) attacks.

  • How do I fix CVE-2018-25047?

    To fix CVE-2018-25047, upgrade Smarty to version 3.1.48 or 4.2.1 or later.

  • Which versions of Smarty are affected by CVE-2018-25047?

    CVE-2018-25047 affects Smarty versions prior to 3.1.48 and versions between 4.0.0 and 4.2.1.

  • What types of attacks can CVE-2018-25047 facilitate?

    CVE-2018-25047 can facilitate cross-site scripting (XSS) attacks by allowing the injection of JavaScript code.

  • Are there any specific software packages vulnerable due to CVE-2018-25047?

    Vulnerable software packages include specified versions of Smarty 3.x and 4.x, particularly under Debian systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203