CVE-2026-62993 — Vulnerability in smarty/smarty — CVE Details
Smarty: SSRF via redirect bypass of trusted_uri using {fetch}
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.57%). Schedule for your next planned update.
Does your project use an affected smarty/smarty version?
Paste your composer.lock to check it for CVE-2026-62993 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Impact
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).
Patches
Fixed in 5.8.2. When a security policy is active, {fetch} now passes a stream context that disables redirect following (follow_location => 0, max_redirects => 1) to file_get_contents() for remote resources. Behavior is unchanged when no security policy is set, since there is no trusted_uri to bypass.
Workarounds
Avoid fetching remote resources from within templates under untrusted control; ensure hosts listed in trusted_uri do not expose open redirects.
Advisory Timeline
- First published September 1, 2026 (86 days ago).
- Last revised September 1, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "smarty/smarty:^5.8.2"
composer require "smarty/smarty:^4.5.7"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| smarty/smarty Packagist · Affected: v5.0.0, v5.0.1, v5.0.2, v5.1.0 (+16 more) | 5.8.2 |
| smarty/smarty Packagist · Affected: v2.6.24, v2.6.25, v2.6.26, v2.6.27 (+68 more) | 4.5.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-918Server-Side Request Forgery (SSRF)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
References
- https://github.com/smarty-php/smarty/security/advisories/GHSA-cq55-c7wv-pxmqWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-62993ADVISORY
- https://github.com/smarty-php/smarty/pull/1194WEB
- https://github.com/smarty-php/smarty/commit/31e06fc087a8b5a9b236c1e5dacc1c2850a2c115WEB
- https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90WEB
- https://github.com/smarty-php/smartyPACKAGE
- https://github.com/smarty-php/smarty/releases/tag/v4.5.7WEB
- https://github.com/smarty-php/smarty/releases/tag/v5.8.2WEB
Frequently Asked Questions
- What is CVE-2026-62993?
- Smarty: SSRF via redirect bypass of trusted_uri using {fetch}. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 8.0/10).
- How do I check if my project is affected by CVE-2026-62993?
- CVE-2026-62993 affects smarty/smarty. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-62993 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 41.3% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-75592MEDIUM
Kirby: Access to image files outside of the site root via path traversal in the media handling
- CVE-2026-88023MEDIUM
MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs