Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. fief-server
  4. ›
  5. GMS-2023-1901

GMS-2023-1901: fief-server Server-Side Template Injection vulnerability

June 23, 2023 (updated September 2, 2026)

Server-Side Template Injection

Overview of the Vulnerability

Server-Side Template Injection (SSTI) is a vulnerability within application templating engines where user input is improperly handled and is embedded into the template, possibly leading code being executed.

An attacker can use SSTI to execute code on the underlying system by manipulating values within the embedded template. When code is executed within the underlying system, it can allow an attacker to run permissioned commands under the exploited process, or exploit Cross-Site Scripting (XSS) to run code within the user’s browser.

Business Impact

SSTI can lead to reputational damage for the business due to a loss in confidence and trust by users. If an attacker successfully executes code within the underlying system, it can result in data theft and indirect financial losses.

Steps to Reproduce

  1. Sign up and login to your account
  2. Use a browser to navigate to: email-templates {{URL}}
  3. put your payload in Edit Base template {{ cycler.__init__.__globals__.os.popen('id').read() }} and you will se it will execute.

Payload: {{ cycler.__init__.__globals__.os.popen('id').read() }}

Proof of Concept (PoC)

The screenshot(s) below demonstrates the SSTI:

Click to open external image

References

  • github.com/advisories/GHSA-hj8m-9fhf-v7jp
  • github.com/fief-dev/fief/commit/91e56625b641fa419e2985772266774bae18382b
  • github.com/fief-dev/fief/releases/tag/v0.25.3
  • github.com/fief-dev/fief/security/advisories/GHSA-hj8m-9fhf-v7jp

Code Behaviors & Features

Detect and mitigate GMS-2023-1901 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 starting from 0.19.0 before 0.25.3

Fixed versions

  • 0.25.3

Solution

Upgrade to version 0.25.3 or above.

Impact 10 CRITICAL

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

Learn more about CVSS

Source file

pypi/fief-server/GMS-2023-1901.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 23 Sep 2026 00:16:43 +0000.