CVE-2026-41645 Nuclei: Environment variable disclosure via Response-Derived DSL Expressions

Medium 5.3 Published Updated

A malicious server can inject DSL expressions in Nuclei to disclose host environment variables if the non-default environment variable option is enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-41645?

CVE-2026-41645 is a medium-severity code injection vulnerability in projectdiscovery nuclei, published on 8 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Nuclei is a vulnerability scanner built on a simple YAML-based DSL. From version 3.0.0 to before version 3.8.0, a vulnerability in Nuclei's expression evaluation engine makes it possible for a malicious target server to inject and execute supported DSL expressions. This happens when HTTP response data containing helper/function syntax gets reused by multi-step templates. If the -env-vars / -ev option is explicitly enabled, this can expose host environment variables. That option is off by default, so standard configurations are not affected by the information disclosure risk. This issue has been patched in version 3.8.0.

Weakness: CWE-94

Which versions are affected by CVE-2026-41645?

It affects 1 product.

Products include Projectdiscovery Nuclei.

How do I fix CVE-2026-41645?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-41645 being exploited?

There is no known exploitation of CVE-2026-41645 in the wild and no public exploit code.

Sources

Is CVE-2026-41645 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free