Skip to main content

nushell CVE-2026-124992

| EUVDEUVD-2026-120415 LOW
Improper Neutralization of Escape, Meta, or Control Sequences (CWE-150)
2026-11-09 VulDB GHSA-xwxm-rqhj-8mmw
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Run nushell on attacker-influenced string data
  2. Delivery
    Serialize via `to json`/`to json --raw`
  3. Exploit
    Control/escape bytes emitted unescaped
  4. Execution
    Injected sequences reach consuming terminal
  5. Impact
    Spoof or manipulate terminal output

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Escape character neutralization
Exploitation Conditions

Exploitation requires an attacker to get a string containing raw control or escape bytes (0x00-0x1f, notably ESC 0x1b) serialized through nushell's to json / to json --raw path (the nu-json escape_bytes serializer) on an affected build (nushell 0.116.0-0.116.1). It is local (AV:L) and requires the low-privilege ability (PR:L) to run nushell commands or pipelines over the attacker-influenced data; no user interaction is needed at the serialization step. The practical impact is limited (VI:L, integrity only) and is realized only when the resulting JSON is subsequently rendered by a terminal or other consumer that interprets escape/control sequences - a downstream rendering context is the key limiting factor, not the serialization itself.

Impact

All severity signals point to a low-to-moderate, defensive-grade issue rather than a top priority. The CVSS 4.0 base score is 4.8 (medium) with a local attack vector (AV:L), low complexity (AC:L), low privileges required (PR:L), no user interaction, and integrity-only impact (VI:L; VC:N, VA:N, no scope change). The exploit-maturity metric E:P signals proof-of-concept maturity, consistent with the fix PR (#19443) carrying tests that demonstrate the unescaped output; this is a PoC reference, not confirmed active exploitation. It is NOT listed in CISA KEV, and no EPSS score was provided, so widespread or automated exploitation is not indicated. The vuln.today priority label is 'this_month' (not act_now/emergency), matching the limited, local, integrity-only character. Conflicting signal to flag explicitly: the description states the fix PR 'awaits acceptance' (i.e., unmerged), while the multi-source 'Patch: Available from vendor' field claims a patch is available - these disagree, and no fixed release version is given, so defenders should verify whether a released nushell build actually contains the fix. Net: a real but low-urgency output-encoding/terminal-escape-injection bug, not a high-CVSS-but-overrated remote threat.

Exploit ScenarioDerived

An attacker arranges for a string containing raw control or escape bytes (including ESC, 0x1b, as in the ANSI sequence '\u{1b}[31m' used in the fix's tests) to be serialized by nushell's to json command. Because nu-json's escape_bytes emitted these bytes unescaped, the sequences survive into the JSON output and are interpreted when that output is rendered in a terminal or consumed downstream, enabling terminal spoofing or display manipulation. A public PoC reference exists in the form of the fix PR's regression tests; it is not verified as a working weaponized exploit.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 09, 2026

Improper escaping in nushell's JSON serializer leaves C0 control bytes, including ESC (0x1b), unescaped in to json and to json --raw output on nushell 0.116.0 and 0.116.1. A local low-privileged user who can pass attacker-influenced strings through those serialization commands can create JSON that may inject control sequences if it is later rendered by a terminal or another consumer that interprets escape sequences; the assessed impact is low and integrity-only, and exploitation depends on that downstream rendering context. No CISA KEV entry is provided, while the CVSS 4.0 vector's E:P metric indicates Proof-of-Concept exploit maturity rather than confirmed active exploitation; the upstream fix is in pull request #19443, which the report says awaits acceptance.

RemediationAI

The supplied patch field says Available from vendor, but the concrete upstream fix is nushell pull request #19443 and the CVE description says that PR awaits acceptance; no tagged release containing the fix is identified, so the status is upstream fix available (PR/commit); released patched version not independently confirmed. Track GitHub issue 19197 and PR 19443 for merge and release, and apply the patched nushell build once published. Until then, avoid passing untrusted strings that contain raw control or escape bytes through to json or to json --raw when the output will be rendered in a terminal or other escape-interpreting context, and limit local ability to run those pipelines over attacker-influenced data; the assessed vector requires local low-privileged command execution and a downstream rendering context. No vendor workaround is described in the provided sources.

Affected VersionsENISA

nushell 0.116.0
nushell 0.116.1

Affected Packages

euvd nushell no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

nushell is a Rust-based shell, and its nu-json crate implements JSON/Hjson serialization used by the to json and to json --raw commands. The affected escape_bytes function in crates/nu-json/src/ser.rs manually escaped only quote, backslash, backspace, formfeed, newline, carriage return, and tab, leaving other C0 control bytes (0x00-0x1f, notably ESC 0x1b) raw; this matches CWE-150, improper neutralization of escape, meta, or control sequences. The supplied PR diff replaces the byte loop with a write_escaped helper that delegates to serde_json::to_writer and preserves serde_json's escape table, adds replacement of invalid UTF-8 with U+FFFD, and adds tests for control characters in values, keys, nested values, and raw output. The assessed vector is local, low-privilege, no user interaction, integrity-only low impact, with the practical trigger being serialization of attacker-influenced control bytes and later consumption of the JSON by a terminal or escape-interpreting renderer.

Know when Nushell gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 1.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
vuln.today AI 3.3 LOW

Local data-conversion flaw triggered by running nushell on supplied data (AV:L, AC:L, PR:L, UI:N); only integrity is affected via unescaped control sequences (I:L), with no confidentiality or availability impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Nov 10, 2026 - 00:07 NVD
MEDIUM LOW
CVSS changed
Nov 10, 2026 - 00:07 NVD
4.8 (MEDIUM) 1.9 (LOW)

DescriptionCVE.org

A vulnerability was identified in nushell up to 0.116.1. Impacted is the function escape_bytes of the file crates/nu-json/src/ser.rs of the component Data Conversion Handler. The manipulation leads to improper neutralization of escape, meta, or control sequences. The attack must be carried out locally. The pull request to fix this issue awaits acceptance.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
nushell is a niche alternative shell with limited production deployment footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy