CVE-2026-22864: Deno has an incomplete fix for command-injection prevention on Windows — case-insensitive extension bypass

Published Jan 15, 2026
·
Updated

Summary A prior patch aimed to block spawning Windows batch/shell files by returning an error when a spawned path’s extension matched .bat or .cmd. That check performs a case-sensitive comparison against lowercase literals and therefore can be bypassed when the extension uses alternate casing (for example .BAT, .Bat, etc.).

POC javascript const command = new Deno.Command('./test.BAT', { args: ['&calc.exe'], }); const child = command.spawn(); This causes calc.exe to be launched; see the attached screenshot for evidence.

Patched in CVE-2025-61787 — prevents execution of .bat and .cmd files: !photo2025-10-10 02 27 23

Bypass of the patched vulnerability: !photo2025-10-10 02 27 25

Impact The script launches calc.exe on Windows, demonstrating that passing user-controlled arguments to a spawned batch script can result in command-line injection.

Mitigation

Users should update to Deno v2.5.6 or newer.

Other sources

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Before 2.5.6, a prior patch aimed to block spawning Windows batch/shell files by returning an error when a spawned path’s extension matched .bat or .cmd. That check performs a case-sensitive comparison against lowercase literals and therefore can be bypassed when the extension uses alternate casing (for example .BAT, .Bat, etc.). This vulnerability is fixed in 2.5.6.

— MITRE

Affected Software

3 affected componentsFixes available
npm/deno<2.5.6
rust/deno<2.5.6
2.5.6
Deno Deno<2.5.6

Event History

Jan 15, 2026
CVE Published
via MITRE·10:58 PM
Data Sourced
via MITRE·10:58 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software
Jan 16, 2026
Advisory Published
via GitHub·03:49 PM
Data Sourced
via GitHub·03:49 PM
DescriptionSeverityWeaknessAffected Software
Feb 19, 58052
Event
via FIRST·12:45 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-22864?

The severity of CVE-2026-22864 is rated as moderate due to the incomplete fix for command-injection prevention.

2

How do I fix CVE-2026-22864?

To fix CVE-2026-22864, upgrade to Deno version 2.5.6 or later where the vulnerability is addressed.

3

What systems are affected by CVE-2026-22864?

CVE-2026-22864 affects Deno versions prior to 2.5.6 on Windows systems.

4

What is the nature of the vulnerability in CVE-2026-22864?

CVE-2026-22864 involves an incomplete implementation of command-injection prevention that allows for case-insensitive extension bypass.

5

Are there any workarounds for CVE-2026-22864?

There are no official workarounds for CVE-2026-22864; upgrading to a secure version is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203