Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-32260: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in denoland deno

0
High
VulnerabilityCVE-2026-32260cvecve-2026-32260cwe-78
Published: Thu Mar 12 2026 (03/12/2026, 19:41:17 UTC)
Source: CVE Database V5
Vendor/Project: denoland
Product: deno

Description

CVE-2026-32260 is a high-severity OS command injection vulnerability in Deno versions 2. 7. 0 and 2. 7. 1 affecting the node:child_process polyfill when used with shell: true. The flaw arises from improper sanitization of arguments containing $VAR patterns, where double quotes are used instead of single quotes, allowing backtick command substitution in POSIX shells. This enables attackers controlling spawn or spawnSync arguments to execute arbitrary OS commands, bypassing Deno's permission system. The vulnerability was introduced as a regression after a previous fix (CVE-2026-27190) and is resolved in version 2. 7. 2.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/20/2026, 02:35:58 UTC

Technical Analysis

Deno is a secure runtime for JavaScript, TypeScript, and WebAssembly that includes a polyfill for Node.js's child_process module. Between versions 2.7.0 and 2.7.1, a critical vulnerability (CVE-2026-32260) was discovered in the polyfill's handling of shell commands when the shell: true option is used. The vulnerability stems from a flawed two-stage sanitization process in the transformDenoShellCommand function, specifically when processing arguments containing environment variable patterns like $VAR. Instead of wrapping these arguments in single quotes, which would prevent shell command substitution, the code wraps them in double quotes. In POSIX-compliant shells, double quotes do not prevent backtick (`) command substitution, allowing an attacker to inject and execute arbitrary commands. This bypasses Deno's permission system, which is designed to restrict unauthorized OS-level operations. The vulnerability is a regression from a previous fix (CVE-2026-27190) and affects all Deno versions from 2.7.0 up to but not including 2.7.2, where the issue was patched. The CVSS v3.1 score is 8.1, indicating high severity, with network attack vector, high attack complexity, no privileges required, no user interaction, and full impact on confidentiality, integrity, and availability. Although no active exploits have been reported, the vulnerability poses a significant risk to any application or service using the affected Deno versions with shell: true in child_process calls.

Potential Impact

This vulnerability allows remote attackers to execute arbitrary OS commands on systems running vulnerable Deno versions without requiring authentication or user interaction. Successful exploitation can lead to full system compromise, including data theft, service disruption, and lateral movement within networks. Since Deno is increasingly used in modern web and server-side applications, the impact spans from individual developers' environments to large-scale cloud deployments. The bypass of Deno's permission system further exacerbates the risk by undermining built-in security controls. Organizations relying on Deno for critical infrastructure or production workloads face potential data breaches, operational outages, and reputational damage if exploited. The high CVSS score reflects the broad impact on confidentiality, integrity, and availability. Given the ease of exploitation once attacker-controlled input reaches the vulnerable API, the threat is significant, especially in environments where untrusted input is passed to child_process with shell: true.

Mitigation Recommendations

1. Immediate upgrade to Deno version 2.7.2 or later, where the vulnerability is fixed. 2. Audit all codebases and dependencies to identify usage of spawn or spawnSync with shell: true in the child_process polyfill and refactor to avoid shell invocation when possible. 3. Implement strict input validation and sanitization on any arguments passed to these functions, especially those containing environment variable patterns or special shell characters. 4. Employ runtime monitoring and anomaly detection to identify suspicious command execution patterns indicative of exploitation attempts. 5. Restrict permissions and isolate environments running Deno applications to limit potential damage from command injection. 6. Educate developers about the risks of shell: true usage and encourage safer alternatives such as direct command execution without shell interpretation. 7. Review and update security policies to include regular dependency vulnerability scanning and timely patching of runtime environments.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-11T15:05:48.397Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69b31b3a2f860ef943e8fca8

Added to database: 3/12/2026, 7:59:54 PM

Last enriched: 3/20/2026, 2:35:58 AM

Last updated: 4/27/2026, 2:32:23 AM

Views: 80

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses