Advisory

GHSA-hwq7-5vv9-c6cf

Also known as: CVE-2018-25047

Summary

Smarty Cross-site Scripting vulnerability in pages that use smarty_function_mailto

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-09-16 00:00 UTC
Modified
2025-11-04 17:01 UTC

Affected packages and fixes

smarty/smarty

Packagist · All systems

Affected

  • introduced 0, fixed 3.1.47 (ecosystem)

Fixed versions

3.1.47

Fix

The export has no generic command for this ecosystem.

smarty/smarty

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.2.1 (ecosystem)

Fixed versions

4.2.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences