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

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

12 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
composer/smarty/smarty<3.1.48
3.1.48
composer/smarty/smarty>=4.0.0, <4.1.1
4.1.1
debian/smarty3
3.1.47-2+deb12u13.1.48-2
debian/smarty4
4.3.0-1+deb12u24.5.5-14.5.8-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/smarty/smarty to a version that resolves this vulnerability.

    Fixed in 3.1.48
  2. Upgrade

    Upgrade composer/smarty/smarty to a version that resolves this vulnerability.

    Fixed in 4.3.1
  3. Upgrade

    Upgrade composer/smarty/smarty to a version that resolves this vulnerability.

    Fixed in 4.1.1
  4. Upgrade

    Upgrade debian/smarty3 to a version that resolves this vulnerability.

    Fixed in 3.1.47-2+deb12u1Fixed in 3.1.48-2
  5. Upgrade

    Upgrade debian/smarty4 to a version that resolves this vulnerability.

    Fixed in 4.3.0-1+deb12u2Fixed in 4.5.5-1Fixed in 4.5.8-1
  6. Upgrade

    Upgrade smarty/smarty to a version that resolves this vulnerability.

    Fixed in 3.1.48
  7. Upgrade

    Upgrade smarty/smarty to a version that resolves this vulnerability.

    Fixed in 4.3.1

Event History

Mar 28, 2023
Advisory Published
via Packagist·07:41 PM
Data Sourced
via Packagist·07:41 PM
DescriptionSeverityAffected Software
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

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

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