VDB

CVE-2023-28447

CVE-2023-28447 PUBLISHED CVSS 7.1 HIGH

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

CVSS 3.1
7.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

Affected products

VendorProductVersions
smarty-phpsmarty>= 4.0.0, < 4.3.1, < 3.1.48
smarty-phpsmarty4.0.0, 0
smartysmarty4.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›