CVE-2026-22863 — Vulnerability in deno — CVE Details
Deno node:crypto doesn't finalize cipher
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.21%). Schedule for your next planned update.
Does your project use an affected Deno version?
Paste your Cargo.lock to check it for CVE-2026-22863 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
The vulnerability allows an attacker to have infinite encryptions.
This can lead to naive attempts at brute forcing, as well as more refined attacks with the goal to learn the server secrets.
PoC
import crypto from "node:crypto";
const key = crypto.randomBytes(32);
const iv = crypto.randomBytes(16);
const cipher = crypto.createCipheriv("aes-256-cbc", key, iv);
cipher.final()
console.log(cipher);
Expected Output
Cipheriv {
_decoder: null,
_options: undefined,
Symbol(kHandle): CipherBase {}
}
Actual Output
Cipheriv {
_events: {
close: undefined,
error: undefined,
prefinish: [Function: prefinish],
finish: undefined,
drain: undefined,
data: undefined,
end: undefined,
readable: undefined
},
_readableState: ReadableState {
highWaterMark: 65536,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 1048844
},
_writableState: WritableState {
highWaterMark: 65536,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
allowHalfOpen: true,
_final: [Function: final],
_maxListeners: undefined,
_transform: [Function: transform],
_eventsCount: 1,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
}
Mitigations
All users should upgrade to Deno v2.6.0 or newer.
Advisory Timeline
- First published January 16, 2026 (314 days ago).
- Last revised February 3, 2026 — 17 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p deno --precise 2.6.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| deno crates.io · Affected: All versions | 2.6.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-325
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
References
Frequently Asked Questions
- What is CVE-2026-22863?
- Deno node:crypto doesn't finalize cipher. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 8.6/10).
- How do I check if my project is affected by CVE-2026-22863?
- CVE-2026-22863 affects deno. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-22863 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 6.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2023-28445CRITICAL
Deno improperly handles resizable ArrayBuffer
- CVE-2026-49401HIGH
Deno: Permission Bypass via Unicode Normalization Mismatch on macOS (APFS)
- CVE-2026-49440HIGH
Deno: Miller-Rabin Primality Test Allows Zero Rounds
- CVE-2026-44726HIGH
Deno's TLS retry copies stale upgrade hook, risking plaintext traffic
- CVE-2025-21620HIGH
fetch: Authorization headers not dropped when redirecting cross-origin
- CVE-2026-27190HIGH
Deno has a Command Injection via Incomplete shell metacharacter blocklist in node:child_process
- CVE-2025-61787HIGH
Deno is Vulnerable to Command Injection on Windows During Batch File Execution
- CVE-2026-22864HIGH
Deno has an incomplete fix for command-injection prevention on Windows — case-insensitive extension bypass