CVE-2026-33154: dynaconf Remote Code Execution via Insecure Template Evaluation

dynaconf Updated 18 Mar 2026

Summary

18/03/2026
Yes i
High
7.5

CVE-2026-33154: dynaconf Affected by Remote Code Execution (RCE) via Insecure Template Evaluation in @jinja Resolver. Affects dynaconf versions < 3.2.13. Fixed in 3.2.13. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Dynaconf is a powerful configuration management tool for Python applications that allows users to manage settings across different environments seamlessly. It supports various configuration sources, including environment variables, .env files, and CI/CD secrets. However, it is vulnerable to a critical security issue that arises from unsafe template evaluation in its @jinja resolver, potentially allowing attackers to execute arbitrary commands on the host system.

Vulnerability Detail

Dynaconf is susceptible to Server-Side Template Injection (SSTI) due to the lack of a sandboxed environment when evaluating template expressions in configuration values. If an attacker can manipulate configuration sources, they can execute arbitrary OS commands. The vulnerability stems from the @jinja resolver, which allows full Jinja2 evaluation without security boundaries, enabling access to Python's internal attributes. Additionally, the @format resolver permits object graph traversal, exposing sensitive runtime objects and environment variables, leading to severe security risks.

How To Fix

Latest published version: 3.3.5 as of 22 Oct 2026

pip install --upgrade "dynaconf==3.3.5"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.2.13

This is the first release that contains the fix.

pip install --upgrade "dynaconf==3.2.13"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can use the Jinja2 sandbox for template rendering to prevent unsafe evaluations. Here is an example code snippet:

from jinja2.sandbox import SandboxedEnvironment env = SandboxedEnvironment() template = env.from_string('{{ config_value }}') safe_value = template.render(config_value=user_input)

Conclusion

The dynaconf package is vulnerable to a significant security issue that can lead to remote code execution due to insecure template evaluation. It is crucial to update to the patched version or implement the recommended workarounds to protect your application from potential exploitation.

See every vulnerability recorded for dynaconf →

Share this vulnerability

FAQ

CVE-2026-33154 is a vulnerability in the dynaconf package that allows for remote code execution through insecure template evaluation.

An attacker can exploit this vulnerability by manipulating configuration sources such as environment variables or .env files to execute arbitrary OS commands.

Successful exploitation can lead to arbitrary command execution, exposure of sensitive environment variables, and full compromise of the application process.

You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner for more information.

If immediate updates are not possible, implement the provided workaround using the Jinja2 sandbox for template rendering to mitigate the risk temporarily.

How To Fix

Latest published version: 3.3.5 as of 22 Oct 2026

pip install --upgrade "dynaconf==3.3.5"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.2.13

This is the first release that contains the fix.

pip install --upgrade "dynaconf==3.2.13"

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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