Servers and applications
GHSA-x8f6-7h7x-vqq8
SSRF vulnerability in Smarty {html_image} redirects
- Severity
- Low
- Published
- 27 Nov 2026
- Last changed
- 27 Nov 2026
- Added to UpHeron
- 27 Nov 2026
- Fixed in
- 4.6.1, 5.9.1
- Sources
- Project advisories (GitHub)
Description
Hi,
We found a server-side request forgery (SSRF) vulnerability when using Smarty's {html_image} function under a security policy. Smarty validates the initial image URL against trusted_uri, but follows an HTTP redirect to an otherwise untrusted destination. This redirect bypass remains after the incomplete fix for CVE-2026-62993.
A template that can select the image URL can make the server connect to an internal HTTP endpoint through an allowed host's redirect.
- CWE-918 — Server-Side Request Forgery
- Provisional severity: Moderate
Affected software
| Software | Affected versions |
|---|---|
SmartyServers and applications · github:smarty-php/smarty |
|
About Smarty
Web template system in PHP
- Monthly downloads (Packagist)
- 1,214,404Packagist, 29 Nov 2026
- Total downloads (Packagist)
- 47,010,492Packagist, 29 Nov 2026
- GitHub stars
- 2,352GitHub, 29 Nov 2026
- Forks
- 704GitHub, 29 Nov 2026
- Latest release
- v5.9.1GitHub, 29 Nov 2026
- Released
- 27 Nov 2026GitHub
- License
- GNU Lesser General Public LicenseWikidata
- Written in
- PHPWikidata
- First released
- 2001Wikidata
- First published on GitHub
- 30 Oct 2014GitHub
Vulnerabilities in Smarty
- In our list
- 39
- Published in the last 12 months
- 7
- Critical, last 12 months
- 1
- High, last 12 months
- 1
- Known exploited
- 0
- GHSA-p927-2m49-9p39Cached page output can become PHP code in the cache file: unescaped quote in the PHP-tag wrapper, and an unchecked pattern failureHigh 8.1 27 Nov 2026
- GHSA-966m-5mq6-5q48{html_options}, {html_select_date} and {html_select_time} emit six named parameters into attribute values and <option> content unescaped, allowing XSS in applications that pass untrusted values to themMedium 6.1 27 Nov 2026
- CVE-2026-82531Missing nocache-hash restoration lets assigned data inject executable PHP into regenerated cache filesCritical 9.2 4 Oct 2026
- CVE-2026-62996Smarty Security stream restriction bypass through stream: resourceMedium 20 Jul 2026
- CVE-2026-62993SSRF via redirect bypass of trusted_uri using {fetch}Medium 20 Jul 2026
- CVE-2026-62992Symlink path traversal out of trusted directoriesMedium 20 Jul 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-x8f6-7h7x-vqq8
- github.com https://github.com/smarty-php/smarty/security/advisories/GHSA-x8f6-7h7x-vqq8