Vulnerability · Published May 8, 2026 · Assigned by GitHub_M
CVE-2026-41645Nuclei: Environment variable disclosure via Response-Derived DSL Expressions
Medium 5.3
In plain English
A medium-severity code injection in nuclei from projectdiscovery. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/projectdiscovery/nuclei | no fix listed | GO-2026-5473 |
| Go | github.com/projectdiscovery/nuclei/v2 | no fix listed | GO-2026-5473 |
| Go | github.com/projectdiscovery/nuclei/v3 | 3.8.0 | GHSA-jm34-66cf-qpvr |
| Go | github.com/projectdiscovery/nuclei/v3 | 3.8.0 | GO-2026-5473 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| projectdiscovery | nuclei | >= 3.0.0, < 3.8.0 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
References
- https://github.com/projectdiscovery/nuclei/security/advisories/GHSA-jm34-66cf-qpvr x_refsource_CONFIRM
- https://github.com/projectdiscovery/nuclei/pull/7221 x_refsource_MISC
- https://github.com/projectdiscovery/nuclei/pull/7321 x_refsource_MISC
- https://github.com/projectdiscovery/nuclei/commit/6c803c74d193f85f8a6d9803ce493fd302cad0eb x_refsource_MISC
- https://github.com/projectdiscovery/nuclei/commit/d2217320162d5782ca7cb95bef9dda17063818f3 x_refsource_MISC
- https://github.com/projectdiscovery/nuclei/releases/tag/v3.8.0 x_refsource_MISC