CVE-2026-62993: Smarty Package SSRF via Redirect Bypass of Trusted URI

smarty/smarty Updated 01 Sep 2026

Summary

01/09/2026
Yes i
Moderate
6.9

CVE-2026-62993: Smarty: SSRF via redirect bypass of trusted_uri using {fetch}. Affects smarty/smarty across 2 version ranges.

< 4.5.7 >= 5.0.0, < 5.8.2

Fixed in 4.5.7 or 5.8.2, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Smarty is a popular open-source template engine for PHP, widely used for its flexibility and ease of integration with various frameworks. It allows developers to separate PHP logic from HTML presentation, enhancing code maintainability. However, it has a vulnerability that can lead to server-side request forgery (SSRF) when fetching remote resources under certain conditions.

Vulnerability Detail

The vulnerability arises when the Smarty {fetch} function is used with a security policy that validates URLs against a trusted_uri allowlist. If a non-http scheme (like https) is used, the function reads the resource with file_get_contents(), which follows HTTP redirects by default. This behavior can be exploited if an open redirect exists on a trusted host, allowing an attacker to redirect requests to internal endpoints, thus bypassing the trusted_uri policy and potentially compromising the server's security.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 4.5.7 4.5.7
    composer require smarty/smarty:4.5.7
  • >= 5.0.0, < 5.8.2 5.8.2
    composer require smarty/smarty:5.8.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, avoid fetching remote resources from templates that are under untrusted control. Additionally, ensure that hosts listed in the trusted_uri do not expose open redirects.

Conclusion

In summary, CVE-2026-62993 is a significant vulnerability in the Smarty template engine that can lead to SSRF attacks. It is crucial to update to the patched versions to mitigate the risk and ensure the security of your applications.

See every vulnerability recorded for smarty/smarty →

Share this vulnerability

FAQ

CVE-2026-62993 is a vulnerability in the Smarty template engine that allows server-side request forgery (SSRF) through a redirect bypass of the trusted_uri policy.

If exploited, this vulnerability can allow attackers to make unauthorized requests to internal services, potentially leading to data breaches or further exploitation of your server.

Smarty versions prior to 5.8.2 and 4.5.7 are affected by this vulnerability.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. You can access the Vulert playground at Vulert Scanner without any signup.

The CVSS score of this vulnerability is 6.9, indicating a moderate level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for smarty/smarty.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 4.5.7 4.5.7
    composer require smarty/smarty:4.5.7
  • >= 5.0.0, < 5.8.2 5.8.2
    composer require smarty/smarty:5.8.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback