ADVISORIES

Vulnerability

CVE-2023-28447

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.

10 advisories report this vulnerability, across 3 ecosystems.

High severity All Ubuntu 6Debian 3Packagist 1

Advisories

  • DEBIAN-CVE-2023-28447

    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…

    CVE-2023-28447 Debian Updated 26 October 2026
  • DLA-3956-1

    smarty3 - security update

    CVE-2018-25047CVE-2023-28447CVE-2024-35226 Debian Updated 20 November 2026
  • DSA-5826-1

    smarty3 - security update

    CVE-2023-28447CVE-2024-35226 Debian Updated 20 November 2026
  • GHSA-7j98-h7fp-4vwj

    smarty Cross-site Scripting vulnerability in Javascript escaping

    High CVE-2023-28447 Packagist Updated 4 November 2025
  • UBUNTU-CVE-2023-28447

    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…

    CVE-2023-28447 Ubuntu Updated 20 May 2026
  • USN-6550-1

    postfixadmin vulnerabilities

    CVE-2022-29221CVE-2022-31129CVE-2023-28447 Ubuntu Updated 27 April 2026
  • USN-7158-1

    smarty3 vulnerabilities

    CVE-2018-25047CVE-2023-28447CVE-2024-35226 Ubuntu Updated 27 April 2026
  • USN-8242-1

    civicrm vulnerability

    Ubuntu Updated 25 June 2026
  • USN-8242-2

    postfixadmin vulnerability

    Ubuntu Updated 20 May 2026
  • USN-8272-1

    smarty3 vulnerability

    Ubuntu Updated 25 June 2026

References