Advisory record · GHSA-hwq7-5vv9-c6cf

Smarty Cross-site Scripting vulnerability in pages that use smarty_function_mailto

CVSS 5.4 MediumEPSS 0.012 · 67th percentile

Published by the GitHub Advisory Database at 16 Sept 2022, 00:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
smarty/smartyPackagist<3.1.47 || >=4.0.0, <4.2.13.1.47, 4.2.1
Identifiers
GHSA-hwq7-5vv9-c6cf · CVE-2018-25047 · PKSA-pght-23ww-rrdy
Weakness (CWE)
CWE-79
Published
16 Sept 2022
Updated
4 Nov 2025

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Smarty versions before 3.1.47 and from 4.0.0 before 4.2.1 are vulnerable to cross-site scripting in the mailto plugin (smarty_function_mailto). An attacker can exploit this on a web page that uses the plugin and accepts GET or POST parameters, injecting JavaScript that runs for a user. Upgrade smarty/smarty to 3.1.47 or 4.2.1.

Written 3 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.4 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.012, the 67th percentile, on 25 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:26 UTC First seen by agentprime
  2. 31 Oct 2026, 14:26 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.