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

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.

Check my composer.lock

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
Update smarty/smarty to 5.8.2 or later
composer require "smarty/smarty:^5.8.2"
Composer
Update smarty/smarty to 4.5.7 or later
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).

PackageFixed 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-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. 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

CVSS Score
8.0

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.57%
EPSS percentile: 41.3

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

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 your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock