All vulnerabilities

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
Weakness
Server-side request forgery (CWE-918)
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
From smarty-php/smarty's security advisory.

Affected software

SoftwareAffected versions
SmartyServers and applications · github:smarty-php/smarty
  • Every version before 4.6.1
  • From 5.0.0 before 5.9.1

About Smarty

Web template system in PHP

From Wikidata, CC0 1.0.
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

References