CVE-2023-28447
Cross site scripting vulnerability in Javascript escaping in smarty/smarty
Reported by github_m · Published March 28, 2023
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| smarty-php | smarty | >= 4.0.0, < 4.3.1, < 3.1.48 |
| smarty-php | smarty | 4.0.0, 0 |
| smarty | smarty | 4.0.0, 0 |
Timeline
- Mar 28, 2023 CVE Published
- Mar 29, 2023 EPSS Score (30 in total, the first dated here)
- Feb 18, 2026 Security Advisory (5 in total, the first dated here)
- Mar 26, 2026 Distribution Patch (4 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-28447
vulnetix vdb fixes CVE-2023-28447
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-28447/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj x_refsource_CONFIRM
- https://github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d x_refsource_MISC
- lblfixer_cve_2023_28447 exploit
- https://lists.debian.org/debian-lts-announce/2024/11/msg00013.html url
- https://nvd.nist.gov/vuln/detail/CVE-2023-28447 advisory
- https://github.com/advisories/GHSA-7j98-h7fp-4vwj advisory
- https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2023-28447.yaml url
- https://github.com/smarty-php/smarty url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HSAUM3YHWHO4UCJXRGRLQGPJAO3MFOZZ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JBB35GLYTL6JL6EOM6BOZNYP47JKNNHT url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P7O7SKTATM6GAP45S64QFXNLWIY5I7HP url