Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. smarty/smarty
  4. ›
  5. CVE-2023-28447

CVE-2023-28447: smarty Cross-site Scripting vulnerability in Javascript escaping

March 29, 2023 (updated November 4, 2025)

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.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2023-28447.yaml
  • github.com/advisories/GHSA-7j98-h7fp-4vwj
  • github.com/smarty-php/smarty
  • github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d
  • github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj
  • lists.debian.org/debian-lts-announce/2024/11/msg00013.html
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HSAUM3YHWHO4UCJXRGRLQGPJAO3MFOZZ
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JBB35GLYTL6JL6EOM6BOZNYP47JKNNHT
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P7O7SKTATM6GAP45S64QFXNLWIY5I7HP
  • nvd.nist.gov/vuln/detail/CVE-2023-28447

Code Behaviors & Features

Detect and mitigate CVE-2023-28447 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.48, all versions starting from 4.0.0 before 4.3.1

Fixed versions

  • 4.3.1
  • 3.1.48

Solution

Upgrade to versions 3.1.48, 4.3.1 or above.

Impact 7.1 HIGH

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

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/smarty/smarty/CVE-2023-28447.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 13 Nov 2025 00:19:39 +0000.