MediumGHSA-9gqj-ppv2-f2hqCVE-2012-4437
Cross-site Scripting in SmartyException
Published 17 May 2022 · Updated 6 Dec 2024
Affected package
smarty/smartyComposer
- Affected
- <3.1.12
- Fixed in
- 3.1.12
Update to the fixed version for your release line, for example:
composer require smarty/smarty:^3.1.12Details
Cross-site scripting (XSS) vulnerability in the SmartyException class in Smarty (aka smarty-php) before 3.1.12 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors that trigger a Smarty exception.
Is GHSA-9gqj-ppv2-f2hq in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected smarty/smarty, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2012-4437
- Linkcode.google.com/p/smarty-php/source/browse/trunk/distribution/change_log.txt
- Linkcode.google.com/p/smarty-php/source/detail?r=4658
- Packagegithub.com/smarty-php/smarty
- Linklists.fedoraproject.org/pipermail/package-announce/2012-September/088138.html
- Linkweb.archive.org/web/20140201075419/http://www.securityfocus.com/bid/55506
- Linkwww.openwall.com/lists/oss-security/2012/09/19/1
- Linkwww.openwall.com/lists/oss-security/2012/09/20/3
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.