CVE-2023-28447: Smarty is a template engine for PHP
CVE-2023-28447 is a high-severity flaw (CVSS 7.1) affecting smarty, fedora. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.1 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 1.0% (top 37%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2023-03-28 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-28447?
smarty: upgrade to 3.1.48, 4.3.1; fedora: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2023-28447 being exploited?
CVE-2023-28447 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2023-28447 affect?
CVE-2023-28447 affects smarty, fedora. Severity is high (CVSS 7.1). 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 m
How urgent is CVE-2023-28447?
Priority 41/100. High severity
Software pages
Related CVEs
- CVE-2023-41661 MEDIUM 5.9 UPGRADE Auth
- CVE-2022-29221 HIGH 8.8 UPGRADE MITIGATE Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application l
- CVE-2021-29454 HIGH 8.1 UPGRADE MITIGATE Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application l
- CVE-2021-26120 CRITICAL 9.8 UPGRADE MITIGATE Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring.
- CVE-2021-26119 HIGH 7.5 UPGRADE MITIGATE Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.