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

Published Mar 28, 2023
·
Updated

Impact 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.

Patches Please upgrade to the most recent version of Smarty v3 or v4.

For more information If you have any questions or comments about this advisory please open an issue in the Smarty repo

Other sources

Cross site scripting vulnerability in Javascript escaping

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.

Launchpad

Affected Software

10 affected componentsFixes available
composer/smarty/smarty<3.1.48, >=4.0.0, <4.1.1
composer/smarty/smarty<3.1.48
3.1.48
composer/smarty/smarty>=4.0.0<4.3.1
4.3.1
Smarty smarty<3.1.48
Smarty smarty>=4.0.0<4.3.1
Fedoraproject Fedora=36
Fedoraproject Fedora=37
Fedoraproject Fedora=38
debian/smarty3<=3.1.39-2+deb11u1
3.1.39-2+deb11u23.1.47-2+deb12u13.1.48-2
debian/smarty4
4.3.0-1+deb12u24.5.5-1

Event History

Mar 28, 2023
Advisory Published
07:46 PM
CVE Published
via MITRE·08:07 PM
Data Sourced
via MITRE·08:07 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:17 AM
Description
May 19, 2026
Data Sourced
via Ubuntu·06:38 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-28447?

CVE-2023-28447 has a high severity due to the potential for arbitrary JavaScript execution in the user's browser.

2

How do I fix CVE-2023-28447?

To fix CVE-2023-28447, upgrade Smarty to version 3.1.48 or 4.3.1 or later.

3

Which versions of Smarty are affected by CVE-2023-28447?

Versions 3.1.48, and 4.0.0 up to 4.1.1 of Smarty are affected by CVE-2023-28447.

4

What type of attack does CVE-2023-28447 enable?

CVE-2023-28447 allows attackers to execute arbitrary JavaScript code in the context of the user's browser session.

5

Is CVE-2023-28447 related to Fedora distributions?

Yes, CVE-2023-28447 affects Fedora versions 36, 37, and 38 among other platforms.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203