The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-41282

CVE-2026-41282: Nuclei DSL Expression Injection RCE Flaw

CVE-2026-41282 is a DSL expression injection vulnerability in ProjectDiscovery Nuclei 3 that enables remote code execution when using -env-vars with multi-step templates. This article covers technical details, affected versions, and mitigation.

Published: April 23, 2026

CVE-2026-41282 Overview

CVE-2026-41282 is a DSL expression injection vulnerability affecting ProjectDiscovery Nuclei 3 before version 3.8.0. This Code Injection flaw allows attackers to inject malicious DSL expressions when the -env-vars flag is used with multi-step templates targeting untrusted hosts. While this is not the default configuration, organizations using Nuclei for security scanning against potentially malicious targets could be at risk of information disclosure.

Critical Impact

Attackers can exploit this vulnerability to inject DSL expressions that may lead to unauthorized disclosure of sensitive information from the scanning environment, including environment variables and system data.

Affected Products

  • ProjectDiscovery Nuclei versions prior to 3.8.0
  • Nuclei installations using -env-vars flag with multi-step templates
  • Go-based Nuclei deployments (as identified by CPE: cpe:2.3:a:projectdiscovery:nuclei:*:*:*:*:*:go:*:*)

Discovery Timeline

  • April 20, 2026 - CVE-2026-41282 published to NVD
  • April 23, 2026 - Last updated in NVD database

Technical Details for CVE-2026-41282

Vulnerability Analysis

This vulnerability stems from insufficient input validation in Nuclei's DSL (Domain Specific Language) expression handling. When users enable the -env-vars flag to expose environment variables within templates, the DSL expression parser fails to properly sanitize or restrict expressions derived from untrusted target responses. This creates an injection vector where a malicious target can craft responses that, when processed by Nuclei's template engine, execute arbitrary DSL expressions.

The vulnerability is classified as CWE-94 (Improper Control of Generation of Code), indicating that the application does not properly neutralize or incorrectly neutralizes code syntax in user-controllable input before executing it as part of dynamically generated code.

Root Cause

The root cause lies in the DSL expression evaluation logic within Nuclei's multi-step template processing. When environment variables are exposed via the -env-vars flag, the template engine processes response data that may contain attacker-controlled content. The DSL parser does not adequately validate or escape this content before evaluation, allowing malicious expressions to be interpreted and executed within the scanning context.

Attack Vector

The attack requires a specific configuration where the victim is running Nuclei with the -env-vars flag enabled and using multi-step templates against untrusted targets. An attacker controlling a malicious target can craft HTTP responses containing DSL expression payloads. When Nuclei processes these responses through its template engine, the injected expressions are evaluated, potentially exposing environment variables or other sensitive data from the scanning system.

The network-based attack vector requires no authentication or user interaction, making it particularly concerning for automated scanning pipelines that may inadvertently scan malicious infrastructure.

Detection Methods for CVE-2026-41282

Indicators of Compromise

  • Unexpected or anomalous data in Nuclei scan output suggesting environment variable leakage
  • HTTP responses from scanned targets containing DSL expression syntax (e.g., {{, }}, DSL function calls)
  • Unusual outbound network connections from systems running Nuclei scans
  • Log entries indicating errors or unexpected behavior in DSL expression evaluation

Detection Strategies

  • Review Nuclei scan configurations for use of the -env-vars flag, especially when scanning untrusted targets
  • Implement network monitoring to detect anomalous data exfiltration from scanning infrastructure
  • Audit Nuclei template files for multi-step templates that may be vulnerable to response injection
  • Deploy endpoint detection to monitor for unusual process behavior during Nuclei execution

Monitoring Recommendations

  • Enable verbose logging for Nuclei operations to capture template processing details
  • Monitor environment variable access patterns on systems running vulnerability scans
  • Implement alerting for Nuclei processes making unexpected network connections
  • Review scan results for signs of data injection or manipulation

How to Mitigate CVE-2026-41282

Immediate Actions Required

  • Upgrade ProjectDiscovery Nuclei to version 3.8.0 or later immediately
  • Audit current Nuclei configurations and disable the -env-vars flag when scanning untrusted targets
  • Review and restrict environment variables accessible to Nuclei scanning processes
  • Implement network segmentation to isolate scanning infrastructure from sensitive systems

Patch Information

ProjectDiscovery has addressed this vulnerability in Nuclei version 3.8.0. The fix is documented in the following commits and pull requests:

  • Security Fix Commit 6c803c7
  • Security Fix Commit d221732
  • Pull Request #7221
  • Pull Request #7321

For complete details, refer to the GitHub Security Advisory GHSA-jm34-66cf-qpvr.

Workarounds

  • Avoid using the -env-vars flag when scanning untrusted or unknown targets
  • Run Nuclei in isolated environments with minimal environment variables configured
  • Use container-based deployment with restricted environment variable exposure
  • Implement strict input validation on any data processed from scan targets before template evaluation
bash
# Verify Nuclei version and upgrade if necessary
nuclei -version

# Upgrade to patched version
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@v3.8.0

# Alternative: Run Nuclei without env-vars flag for untrusted targets
nuclei -t templates/ -u https://target.com
# Avoid: nuclei -env-vars -t multi-step-template.yaml -u https://untrusted-target.com

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechProjectdiscovery Nuclei

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Nuclei Pull Request #7221

  • GitHub Nuclei Pull Request #7321
  • Vendor Resources
  • GitHub Nuclei Commit Update

  • GitHub Nuclei Commit Update

  • GitHub Security Advisory GHSA-jm34-66cf-qpvr
  • Related CVEs
  • CVE-2026-41645: Projectdiscovery Nuclei RCE Vulnerability

  • CVE-2024-43405: Projectdiscovery Nuclei RCE Vulnerability

  • CVE-2026-41646: Nuclei Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English