Live threats

All CVEs / Smarty

CVE-2023-28447Smarty

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.9%
probability of exploitation in 30 days · percentile 60
Auth required
No
Published
Mar 28, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Smarty.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist smarty/smarty ≥ 4.0.0 < 4.3.1 4.3.1 composer require "smarty/smarty:^4.3.1"
Packagist smarty/smarty < 3.1.48 3.1.48 composer require "smarty/smarty:^3.1.48"

Per OSV / GitHub Advisories (GHSA-7j98-h7fp-4vwj). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
smartysmarty< 3.1.48
smartysmarty≥ 4.0.0 < 4.3.1
fedoraprojectfedora36
fedoraprojectfedora37
fedoraprojectfedora38

Official sources

References

Links published by the sources. Open them with care.