CVE-2023-28447
MEDIUM 6.1CVSS 3.1smarty Cross-site Scripting vulnerability in Javascript escaping
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.
- Published
- 28 Mar 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-7j98-h7fp-4vwj
- Sources
- NVDJSONOSV GHSA-7j98-h7fp-4vwjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* |
< 3.1.48 | 3.1.48 |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.3.1 | 4.3.1 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* |
= 36 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
= 37 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* |
= 38 | |
| OSV | Packagist | smarty/smarty | >= 4.0.0, < 4.3.1 | 4.3.1 |
| OSV | Packagist | smarty/smarty | < 3.1.48 | 3.1.48 |
References
- https://github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d · Patch, WEB
- https://github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj · Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HSAUM3YHWHO4UCJXRGRLQGPJAO3MFOZZ/ · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JBB35GLYTL6JL6EOM6BOZNYP47JKNNHT/ · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P7O7SKTATM6GAP45S64QFXNLWIY5I7HP/ · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/11/msg00013.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-28447 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2023-28447.yaml · WEB
- https://github.com/smarty-php/smarty · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 28 Mar 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 29 Mar 2023)