Loading...
Skip to main content

CVE-2026-62993 — Vulnerability in smarty/smarty — CVE Details

MEDIUM

Smarty: SSRF via redirect bypass of trusted_uri using {fetch}

Published September 1, 2026Updated September 1, 2026Source: osv

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 (41 days ago).
  • Last revised September 1, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update smarty/smarty to 4.5.7 or later
composer require "smarty/smarty:^4.5.7"
Composer
Update smarty/smarty to 5.8.2 or later
composer require "smarty/smarty:^5.8.2"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
smarty/smarty
packagist
v2.6.24, v2.6.25, v2.6.26, v2.6.27 (+68 more)4.5.7
smarty/smarty
packagist
v5.0.0, v5.0.1, v5.0.2, v5.1.0 (+16 more)5.8.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-918
    Server-Side Request Forgery (SSRF)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-62993 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.0

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-cq55-c7wv-pxmq

Related CVEs

  • CVE-2026-75592
    MEDIUM

    Kirby: Access to image files outside of the site root via path traversal in the media handling

  • CVE-2026-88023
    MEDIUM

    MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies