CVE-2023-28447

Cross site scripting vulnerability in Javascript escaping in smarty/smarty

MEDIUM
6.1
CVSS Score
Published: March 28, 2023 at 08:07 PM UTC
Updated: June 17, 2026 at 05:47 AM UTC
3 products affected across 3 vendorsFedoraSmartySmarty

Using smarty by smarty-php?

Get instant alerts when new vulnerabilities affect smarty - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 1%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.1.484.0.0 ≤ v < 4.3.1
Affected range stops below 3.1.48, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.3.1, so it looks safe — our inference, not a vendor statement
v < 3.1.48v < 4.3.1
Affected range stops below 3.1.48, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.3.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card