Security mailing lists by PureSourceCode

CVE-2018-25047

MEDIUM 5.4CVSS 3.1

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 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD smarty smarty
cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*
< 3.1.47 3.1.47
NVD smarty smarty
cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*
>= 4.0.0, < 4.2.1 4.2.1
NVD debian debian_linux
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.