HighGHSA-7j98-h7fp-4vwjCVE-2023-28447

smarty Cross-site Scripting vulnerability in Javascript escaping

Published 29 Mar 2023 · Updated 4 Nov 2025

Affected packages

Affected
>=4.0.0 <4.3.1
Fixed in
4.3.1
Update to the fixed version for your release line, for example:composer require smarty/smarty:^4.3.1
Affected
<3.1.48
Fixed in
3.1.48
Update to the fixed version for your release line, for example:composer require smarty/smarty:^3.1.48

Details

Impact

An attacker could exploit this vulnerability to execute arbitrary JavaScript code in the context of the user's browser session. This may lead to unauthorized access to sensitive user data, manipulation of the web application's behavior, or unauthorized actions performed on behalf of the user.

Patches

Please upgrade to the most recent version of Smarty v3 or v4.

For more information

If you have any questions or comments about this advisory please open an issue in the Smarty repo

Is GHSA-7j98-h7fp-4vwj 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.