All vulnerabilities

Servers and applications

CVE-2026-62993

SSRF via redirect bypass of trusted_uri using {fetch}

Severity
Medium
Published
20 Jul 2026
Last changed
20 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
4.5.7, 5.8.2
Exploit chance
0.6% in the next 30 daysHigher than 48% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Server-side request forgery (CWE-918)
Also known as
GHSA-cq55-c7wv-pxmq
Sources
Project advisories (GitHub)

Description

When a Security policy is active, {fetch} validates the requested remote URL against the trusted_uri allowlist via Security::isTrustedUri(). For non-http:// schemes (e.g. https://) the resource was then read with file_get_contents(), which follows HTTP redirects by default. Because isTrustedUri() only validates the initial URL, an open redirect on an otherwise-trusted host could be used to redirect the request to a non-trusted, internal target — bypassing the trusted_uri policy.

An attacker who can supply a fetch target (or influence one) and who has an open redirect available on a trusted host can cause the server to issue requests to attacker-chosen internal endpoints, defeating the trusted_uri allowlist (server-side request forgery).

From smarty-php/smarty's security advisory.

Workarounds

Avoid fetching remote resources from within templates under untrusted control; ensure hosts listed in trusted_uri do not expose open redirects.

Workarounds as given by smarty-php/smarty's security advisory.

Affected software

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

About Smarty

Web template system in PHP

From Wikidata, CC0 1.0.
Monthly downloads (Packagist)
1,171,375Packagist, 15 Nov 2026
Total downloads (Packagist)
46,435,268Packagist, 15 Nov 2026
GitHub stars
2,351GitHub, 15 Nov 2026
Forks
703GitHub, 15 Nov 2026
Latest release
v5.8.5GitHub, 15 Nov 2026
Released
4 Oct 2026GitHub
License
GNU Lesser General Public LicenseWikidata
Written in
PHPWikidata
First released
2001Wikidata
First published on GitHub
30 Oct 2014GitHub

References