Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. smarty/smarty
  4. ›
  5. CVE-2026-62993

CVE-2026-62993: Smarty: SSRF via redirect bypass of trusted_uri using {fetch}

September 1, 2026

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.

References

  • github.com/advisories/GHSA-cq55-c7wv-pxmq
  • github.com/smarty-php/smarty/commit/31e06fc087a8b5a9b236c1e5dacc1c2850a2c115
  • github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90
  • github.com/smarty-php/smarty/pull/1194
  • github.com/smarty-php/smarty/releases/tag/v4.5.7
  • github.com/smarty-php/smarty/releases/tag/v5.8.2
  • github.com/smarty-php/smarty/security/advisories/GHSA-cq55-c7wv-pxmq
  • nvd.nist.gov/vuln/detail/CVE-2026-62993

Code Behaviors & Features

Detect and mitigate CVE-2026-62993 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.5.7, all versions starting from 5.0.0 before 5.8.2

Fixed versions

  • 4.5.7
  • 5.8.2

Solution

Upgrade to versions 4.5.7, 5.8.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

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

Source file

packagist/smarty/smarty/CVE-2026-62993.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 05 Sep 2026 00:22:00 +0000.