Advisory

GHSA-7j98-h7fp-4vwj

Also known as: CVE-2023-28447

Summary

smarty Cross-site Scripting vulnerability in Javascript escaping

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-03-29 18:31 UTC
Modified
2025-11-04 17:02 UTC

Affected packages and fixes

smarty/smarty

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.3.1 (ecosystem)

Fixed versions

4.3.1

Fix

The export has no generic command for this ecosystem.

smarty/smarty

Packagist · All systems

Affected

  • introduced 0, fixed 3.1.48 (ecosystem)

Fixed versions

3.1.48

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences