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
- 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).
Workarounds
Avoid fetching remote resources from within templates under untrusted control; ensure hosts listed in trusted_uri do not expose open redirects.
Affected software
| Software | Affected versions |
|---|---|
SmartyServers and applications · github:smarty-php/smarty |
|
About Smarty
Web template system in PHP
- 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
Vulnerabilities in Smarty
- In our list
- 36
- Published in the last 12 months
- 4
- Critical, last 12 months
- 1
- High, last 12 months
- 0
- Known exploited
- 0
- 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-62992Symlink path traversal out of trusted directoriesMedium 20 Jul 2026
- CVE-2024-35226PHP Code Injection by malicious attribute in extends-tagHigh 28 May 2024
- CVE-2023-41661Auth. (admin+) Stored Cross-Site Scripting (XSS) vulnerability in PressPage Entertainment Inc. Smarty for WordPress plugin <= 3.1.35 versions.Medium 4.8 29 Sept 2023
- CVE-2023-28447Cross site scripting vulnerability in Javascript escapingMedium 6.1 28 Mar 2023
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-62993
- GitHub Advisory Database https://github.com/advisories/GHSA-cq55-c7wv-pxmq
- github.com https://github.com/smarty-php/smarty/security/advisories/GHSA-cq55-c7wv-pxmq