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

CVE-2023-28447: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

March 28, 2023 (updated February 1, 2024)

Smarty is a template engine for PHP. In affected versions smarty does 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.

References

  • github.com/advisories/GHSA-7j98-h7fp-4vwj
  • github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d
  • github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj
  • 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

  • 3.1.48
  • 4.3.1

Solution

Upgrade to versions 3.1.48, 4.3.1 or above.

Impact 6.1 MEDIUM

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

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 Wed, 14 May 2025 12:15:40 +0000.