{"id":"CVE-2023-28447","published":"2023-03-28T20:07:39Z","modified":"2025-11-03T21:47:36Z","title":"Cross site scripting vulnerability in Javascript escaping in smarty/smarty","vendor":"smarty-php","product":"smarty","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01016,"percentile":0.64131,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HSAUM3YHWHO4UCJXRGRLQGPJAO3MFOZZ/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JBB35GLYTL6JL6EOM6BOZNYP47JKNNHT/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P7O7SKTATM6GAP45S64QFXNLWIY5I7HP/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00013.html","tags":[]}],"priority":{"score":22.8,"factors":[{"name":"EPSS percentile","points":12.83},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.97}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2023-03-30","earliestUrl":"https://github.com/drkbcn/lblfixer_cve_2023_28447","repos":[{"name":"drkbcn/lblfixer_cve_2023_28447","url":"https://github.com/drkbcn/lblfixer_cve_2023_28447","stars":2,"created":"2023-03-30"}]},"first":{"date":"2023-03-30","source":"PoC-in-GitHub","url":"https://github.com/drkbcn/lblfixer_cve_2023_28447"},"provenance":"source"},"vendorSlug":"smarty-php","affectedVersions":[{"vendor":"smarty-php","product":"smarty","versions":[">= 4.0.0, < 4.3.1","< 3.1.48"]}],"affected":[{"ecosystem":"Packagist","package":"smarty/smarty","vulnerableRanges":[">=4.0.0, <4.3.1","<3.1.48"],"patched":["4.3.1","3.1.48"],"from":["GHSA-7j98-h7fp-4vwj"],"provenance":"source"}],"summary":{"text":"The Smarty template engine for PHP, in the smarty/smarty component, fails to properly escape JavaScript code, leaving it open to cross-site scripting. An attacker can get arbitrary JavaScript to run in a user's browser session over the network with no authentication, but only if the user interacts with the crafted content, and the consequences can include access to sensitive user data and actions performed on the user's behalf.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:38:19Z"},"euvd":{"id":"EUVD-2023-0924","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-21408","published":"2022-01-10","fixed":"4.0.3","kev":false},{"cve":"CVE-2022-29221","published":"2022-05-24","fixed":"4.1.1","kev":false},{"cve":"CVE-2018-25047","published":"2022-09-14","fixed":"4.2.1","kev":false,"link":{"from":"CVE-2018-25047","to":"CVE-2023-28447","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:smarty/smarty","fromFixed":"3.1.47","toFixed":"3.1.48","daysApart":195},{"kind":"version-step","provenance":"source","package":"Packagist:smarty/smarty","fromFixed":"4.2.1","toFixed":"4.3.1","daysApart":195}]}},{"cve":"CVE-2023-28447","published":"2023-03-28","fixed":"4.3.1","kev":false},{"cve":"CVE-2024-35226","published":"2024-05-28","fixed":"5.1.1","kev":false,"link":{"from":"CVE-2023-28447","to":"CVE-2024-35226","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:smarty/smarty","fromFixed":"4.3.1","toFixed":"4.5.3","daysApart":427}]}},{"cve":"CVE-2026-62992","published":"2026-08-07","fixed":"5.8.2","kev":false},{"cve":"CVE-2026-62993","published":"2026-08-31","fixed":"5.8.2","kev":false}],"package":"Packagist:smarty/smarty"}}