High severity7.1NVD Advisory· Published Mar 28, 2023· Updated Jun 17, 2026
CVE-2023-28447
CVE-2023-28447
Description
Smarty is a template engine for PHP. In affected versions smarty did not properly escape javascript code. 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. Users are advised to upgrade to either version 3.1.48 or to 4.3.1 to resolve this issue. There are no known workarounds for this vulnerability.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
smarty/smartyPackagist | >= 4.0.0, < 4.3.1 | 4.3.1 |
smarty/smartyPackagist | < 3.1.48 | 3.1.48 |
Affected products
6cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*
Patches
Vulnerability mechanics
References
12- github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713dnvdPatchWEB
- github.com/advisories/GHSA-7j98-h7fp-4vwjghsaADVISORY
- github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwjnvdThird Party AdvisoryWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/HSAUM3YHWHO4UCJXRGRLQGPJAO3MFOZZ/nvdMailing ListThird Party Advisory
- lists.fedoraproject.org/archives/list/[email protected]/message/JBB35GLYTL6JL6EOM6BOZNYP47JKNNHT/nvdMailing ListThird Party Advisory
- lists.fedoraproject.org/archives/list/[email protected]/message/P7O7SKTATM6GAP45S64QFXNLWIY5I7HP/nvdMailing ListThird Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2023-28447ghsaADVISORY
- github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2023-28447.yamlghsaWEB
- lists.debian.org/debian-lts-announce/2024/11/msg00013.htmlnvdWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/HSAUM3YHWHO4UCJXRGRLQGPJAO3MFOZZghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/JBB35GLYTL6JL6EOM6BOZNYP47JKNNHTghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/P7O7SKTATM6GAP45S64QFXNLWIY5I7HPghsaWEB
News mentions
0No linked articles in our index yet.