Published:2012/10/10  Last Updated:2012/10/10

Smarty vulnerable to cross-site scripting


Smarty contains a cross-site scripting vulnerability.

Products Affected

  • Smarty 3.1.11 and earlier
  • Smarty 2.6.26 and earlier


Smarty is a template engine for PHP. Smarty contains a cross-site scripting vulnerability when displaying an error message.


An arbitrary script may be executed on the user's web browser.


Update the software
Update to the latest version according to the information provided by the developer.

Vendor Status

Vendor Link
Smarty Changelog
Smarty - Template Engine


JPCERT/CC Addendum

Vulnerability Analysis by JPCERT/CC

Analyzed on 2012.10.10

Measures Conditions Severity
Access Required can be attacked over the Internet using packets
  • High
Authentication anonymous or no authentication (IP addresses do not count)
  • High
User Interaction Required the user must be convinced to take a standard action that does not feel harmful to most users, such as click on a link or view a file
  • Mid
Exploit Complexity the user must be convinced to take a difficult or suspicious action. If the honest user must have elevated privileges, they are likely to be more suspiciouse
  • High

Description of each analysis measures


Yuji Tounai of reported this vulnerability to IPA.
JPCERT/CC coordinated with the developer under Information Security Early Warning Partnership.

Other Information

JPCERT Reports
CERT Advisory
CPNI Advisory
CVE CVE-2012-4437
JVN iPedia JVNDB-2012-000094