DescriptionSmarty 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1033964, 1033965

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
smarty3 (PTS)buster3.1.33+20180830.1.3a78a21f+selfpack1-1+deb10u1vulnerable
buster (security)3.1.33+20180830.1.3a78a21f+selfpack1-1+deb10u2vulnerable
bullseye (security), bullseye3.1.39-2+deb11u1vulnerable
sid, trixie3.1.48-1fixed
smarty4 (PTS)bookworm4.3.0-1+deb12u1fixed
sid, trixie4.3.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs


[bookworm] - smarty3 <no-dsa> (Minor issue)
[bullseye] - smarty3 <no-dsa> (Minor issue)
[buster] - smarty3 <no-dsa> (Minor issue) (v4.3.1) (v3.1.48)

Search for package or bug name: Reporting problems