# JLSEC-2026-114: Deno node:crypto doesn't finalize cipher

- Severity: High 7.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-04-14T13:10:46.494Z
- Modified: 2026-07-18T00:01:28.714Z
- Related: CVE-2026-22863, GHSA-5379-f5hf-w38v, EUVD-2026-2936

## Description

### 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

```js
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

```js
Cipheriv {
  _decoder: null,
  _options: undefined,
  Symbol(kHandle): CipherBase {}
}
```

### Actual Output

```js
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.

(As written by Julia Security Advisories.)

## Affected

- Deno_jll (Julia): before 2.6.3+0

## Every score

- Julia Security Advisories: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Julia Security Advisories: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/advisories/GHSA-5379-f5hf-w38v> (web)
- <https://github.com/denoland/deno/releases/tag/v2.6.0> (web)
- <https://github.com/denoland/deno/security/advisories/GHSA-5379-f5hf-w38v> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22863> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-114](https://osv.dev/vulnerability/JLSEC-2026-114), CC-BY-4.0, modified 2026-07-18

---

Page: https://cve.day/JLSEC-2026-114 · Whole record: https://cve.day/JLSEC-2026-114.json · Rebuilt by cve.day 2026-11-25T22:56:25.875Z
