MediumGHSA-9gqj-ppv2-f2hqCVE-2012-4437

Cross-site Scripting in SmartyException

Published 17 May 2022 · Updated 6 Dec 2024

Affected package

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

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.